1. pkumar
  2. moin-2.0

Commits

Thomas Waldmann  committed fdbf75e

fixes typos, removed planes

  • Participants
  • Parent commits cd3b797
  • Branches default

Comments (0)

Files changed (4)

File MoinMoin/_tests/test_wikiutil.py

View file
         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']

File MoinMoin/auth/_tests/test_http.py

View file
             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()
 

File MoinMoin/items/_tests/test_Item.py

View file
     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)

File MoinMoin/macro/_tests/test_Anchor.py

View file
     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