changeset 1381:e3ea3f1901ba

pep8: fix some E221 / E222
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Jun 2012 21:28:45 +0200
parents 5aa7d0b9c803
children fe7123da78ba
files MoinMoin/converter/_tests/test_moinwiki_in_out.py MoinMoin/converter/rst_out.py MoinMoin/macro/_tests/test_DateTime.py MoinMoin/macro/_tests/test__base.py MoinMoin/security/_tests/test_textcha.py MoinMoin/util/_tests/test_paramparser.py
diffstat 6 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_moinwiki_in_out.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/converter/_tests/test_moinwiki_in_out.py	Sun Jun 10 21:28:45 2012 +0200
@@ -22,7 +22,7 @@
 
 class TestConverter(object):
 
-    input_namespaces =  'xmlns="{0}" xmlns:page="{1}" xmlns:xlink="{2}"'.format(moin_page.namespace, moin_page.namespace, xlink.namespace)
+    input_namespaces = 'xmlns="{0}" xmlns:page="{1}" xmlns:xlink="{2}"'.format(moin_page.namespace, moin_page.namespace, xlink.namespace)
 
     namespaces = {
         moin_page.namespace: 'page',
--- a/MoinMoin/converter/rst_out.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/converter/rst_out.py	Sun Jun 10 21:28:45 2012 +0200
@@ -567,7 +567,7 @@
             else:
                 ret = self.open_children(elem)
             if not self.delete_newlines:
-                ret +=  u"\n"
+                ret += u"\n"
         else:
             self.status.append('p')
             ret = self.open_children(elem)
--- a/MoinMoin/macro/_tests/test_DateTime.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/macro/_tests/test_DateTime.py	Sun Jun 10 21:28:45 2012 +0200
@@ -23,7 +23,7 @@
     assert test_time == result
 
     arguments = ['2011-08-07T11:11:11', 'argument2']
-    result  = macro_obj.macro('content', arguments, 'page_url', 'alternative')
+    result = macro_obj.macro('content', arguments, 'page_url', 'alternative')
     expected = u'Aug 7, 2011 11:11:11 AM'
     assert result == expected
 
--- a/MoinMoin/macro/_tests/test__base.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/macro/_tests/test__base.py	Sun Jun 10 21:28:45 2012 +0200
@@ -13,7 +13,7 @@
 
     def test_MacroBase(self):
         """ test for MacroBase class """
-        macrobase_obj  = MacroBase()
+        macrobase_obj = MacroBase()
         assert not macrobase_obj.immutable
         with pytest.raises(NotImplementedError):
             macrobase_obj.__call__('content', 'arguments', 'page_url', 'alternative', 'context_block')
--- a/MoinMoin/security/_tests/test_textcha.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/security/_tests/test_textcha.py	Sun Jun 10 21:28:45 2012 +0200
@@ -40,8 +40,8 @@
 
         # test for textcha
         test_textchas = textcha_obj.textchas
-        expected_textchas  = {'Good Question': 'Good Answer',
-                                'What is the question?': 'Test_Answer'}
+        expected_textchas = {'Good Question': 'Good Answer',
+                             'What is the question?': 'Test_Answer'}
         assert test_textchas == expected_textchas
         # test for the question
         test_question = textcha_obj.question
--- a/MoinMoin/util/_tests/test_paramparser.py	Sun Jun 10 21:19:47 2012 +0200
+++ b/MoinMoin/util/_tests/test_paramparser.py	Sun Jun 10 21:28:45 2012 +0200
@@ -137,11 +137,11 @@
 
     def testUnitArgument(self):
         result = paramparser.UnitArgument('7mm', float, ['%', 'mm'])
-        assert result.get_default() ==  (7.0, 'mm')
+        assert result.get_default() == (7.0, 'mm')
         assert result.parse_argument('8%') == (8.0, '%')
-        pytest.raises(ValueError, result.parse_argument,  u'7m')
-        pytest.raises(ValueError, result.parse_argument,  u'7')
-        pytest.raises(ValueError, result.parse_argument,  u'mm')
+        pytest.raises(ValueError, result.parse_argument, u'7m')
+        pytest.raises(ValueError, result.parse_argument, u'7')
+        pytest.raises(ValueError, result.parse_argument, u'mm')
 
     def testExtendedParser(self):
         tests = [