summaryrefslogtreecommitdiff
path: root/docutils/test/test_utils.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-29 16:28:17 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-29 16:28:17 +0000
commitd79d962ed7046a7fc6a53bdfe472d68f273f3b68 (patch)
tree1f2d820f66283f8905b947ca14c734dcf26a4973 /docutils/test/test_utils.py
parentfbf6ed81005614eb13e3db1c6c53f565cb22ef44 (diff)
downloaddocutils-d79d962ed7046a7fc6a53bdfe472d68f273f3b68.tar.gz
Fix code indentation
Check conformance to our coding policies with flake8. Fix the following problems: E111 indentation is not a multiple of four E114 indentation is not a multiple of four (comment) E115 expected an indented block (comment) E116 unexpected indentation (comment) E117 over-indented E121 continuation line under-indented for hanging indent E122 continuation line missing indentation or outdented E124 closing bracked does not match visual indentaion E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E131 continuation line unaligned for hanging indent git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_utils.py')
-rwxr-xr-xdocutils/test/test_utils.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/docutils/test/test_utils.py b/docutils/test/test_utils.py
index 17304bbd6..31c4ec7a7 100755
--- a/docutils/test/test_utils.py
+++ b/docutils/test/test_utils.py
@@ -34,7 +34,7 @@ class ReporterTests(unittest.TestCase):
debug output
""")
self.assertEqual(self.stream.getvalue(),
- 'test data:: (DEBUG/0) debug output\n')
+ 'test data:: (DEBUG/0) debug output\n')
def test_level1(self):
sw = self.reporter.system_message(1, 'a little reminder')
@@ -53,7 +53,7 @@ class ReporterTests(unittest.TestCase):
a warning
""")
self.assertEqual(self.stream.getvalue(),
- 'test data:: (WARNING/2) a warning\n')
+ 'test data:: (WARNING/2) a warning\n')
def test_level3(self):
sw = self.reporter.system_message(3, 'an error')
@@ -63,13 +63,13 @@ class ReporterTests(unittest.TestCase):
an error
""")
self.assertEqual(self.stream.getvalue(),
- 'test data:: (ERROR/3) an error\n')
+ 'test data:: (ERROR/3) an error\n')
def test_level4(self):
self.assertRaises(utils.SystemMessage, self.reporter.system_message, 4,
'a severe error, raises an exception')
self.assertEqual(self.stream.getvalue(), 'test data:: (SEVERE/4) '
- 'a severe error, raises an exception\n')
+ 'a severe error, raises an exception\n')
def test_unicode_message(self):
@@ -166,8 +166,8 @@ class NameValueTests(unittest.TestCase):
output = utils.extract_name_value(
"""att1=val1 att2=val2 att3="value number '3'" att4=val4""")
self.assertEqual(output, [('att1', 'val1'), ('att2', 'val2'),
- ('att3', "value number '3'"),
- ('att4', 'val4')])
+ ('att3', "value number '3'"),
+ ('att4', 'val4')])
class ExtensionOptionTests(unittest.TestCase):