Thomas Waldmann avatar Thomas Waldmann committed fdbf75e

fixes typos, removed planes

Comments (0)

Files changed (4)

MoinMoin/_tests/test_wikiutil.py

         assert result == expected
 
     # filename is none and content type has a value
-    result = wikiutil.file_headers(None, 'plane/text')
-    expected = [('Content-Type', 'plane/text')]
+    result = wikiutil.file_headers(None, 'text/plain')
+    expected = [('Content-Type', 'text/plain')]
     assert result == expected
 
 coverage_modules = ['MoinMoin.wikiutil']

MoinMoin/auth/_tests/test_http.py

             self.username = 'ValidUser'
             self.password = 'test_pass'
 
-    def setup_method(self, metod):
+    def setup_method(self, method):
         flaskg.user.auth_method = 'http'
         request.authorization = self.Auth()
 

MoinMoin/items/_tests/test_Item.py

     MoinMoin - MoinMoin.items Tests
 """
 
-# TODO: spilt the tests into multiple ones after the item.__init__ is split.
+# TODO: split the tests into multiple files after the items/__init__.py is split.
 
 import pytest
 
         try:
             from PIL import Image as PILImage
             with pytest.raises(ValueError):
-                result = TransformableBitmapImage._transform(item, 'plane/text')
+                result = TransformableBitmapImage._transform(item, 'text/plain')
         except ImportError:
             result = TransformableBitmapImage._transform(item, contenttype)
             assert result == (u'image/jpeg', '')
 
     def test_data_conversion(self):
         item_name = u'Text_Item'
-        item = Text.create(item_name, u'text/plane')
+        item = Text.create(item_name, u'text/plain')
         test_text = u'This \n is \n a \n Test'
         # test for data_internal_to_form
         result = Text.data_internal_to_form(item, test_text)
     def test__render_data_diff_text(self):
         item_name = u'Text_Item'
         item = Text.create(item_name)
-        contenttype = u'text/plane'
+        contenttype = u'text/plain'
         meta = {CONTENTTYPE: contenttype}
         item._save(meta)
         item1 = Text.create(item_name)
     def test__render_data_highlight(self):
         item_name = u'Text_Item'
         item = Text.create(item_name)
-        contenttype = u'text/plane'
+        contenttype = u'text/plain'
         meta = {CONTENTTYPE: contenttype}
         item._save(meta)
         item1 = Text.create(item_name)

MoinMoin/macro/_tests/test_Anchor.py

     with pytest.raises(ValueError):
         macro_obj.macro('content', None, 'page_url', 'alternative')
 
-    arguments = [('test_argument1', 'test_argument2'), 'test_argumnt3']
+    arguments = [('test_argument1', 'test_argument2'), 'test_argument3']
     result = macro_obj.macro('content', arguments, 'page_url', 'alternative')
     test_anchor = result.attrib.values()
     # test_anchor[0] since it returns a list
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.