changeset 825:fdbf75ef21bf

fixes typos, removed planes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Sep 2011 00:57:32 +0200
parents cd3b797c8219
children 80a0461249ea
files MoinMoin/_tests/test_wikiutil.py MoinMoin/auth/_tests/test_http.py MoinMoin/items/_tests/test_Item.py MoinMoin/macro/_tests/test_Anchor.py
diffstat 4 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wikiutil.py	Thu Sep 01 00:32:23 2011 +0200
+++ b/MoinMoin/_tests/test_wikiutil.py	Thu Sep 01 00:57:32 2011 +0200
@@ -260,8 +260,8 @@
         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']
--- a/MoinMoin/auth/_tests/test_http.py	Thu Sep 01 00:32:23 2011 +0200
+++ b/MoinMoin/auth/_tests/test_http.py	Thu Sep 01 00:57:32 2011 +0200
@@ -19,7 +19,7 @@
             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()
 
--- a/MoinMoin/items/_tests/test_Item.py	Thu Sep 01 00:32:23 2011 +0200
+++ b/MoinMoin/items/_tests/test_Item.py	Thu Sep 01 00:57:32 2011 +0200
@@ -5,7 +5,7 @@
     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
 
@@ -314,7 +314,7 @@
         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', '')
@@ -358,7 +358,7 @@
 
     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)
@@ -382,7 +382,7 @@
     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)
@@ -398,7 +398,7 @@
     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)
--- a/MoinMoin/macro/_tests/test_Anchor.py	Thu Sep 01 00:32:23 2011 +0200
+++ b/MoinMoin/macro/_tests/test_Anchor.py	Thu Sep 01 00:57:32 2011 +0200
@@ -13,7 +13,7 @@
     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