summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cgitb.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2011-07-06 00:16:37 (GMT)
committerBrian Curtin <brian@python.org>2011-07-06 00:16:37 (GMT)
commit692e26be467e1aecf8fb138c54276626f6c87fb7 (patch)
tree2f45ea7224b2f801b9781b8458945510ff35b9a9 /Lib/test/test_cgitb.py
parent6a4ffd7295e4c6a1da4f0ef4e381ebfbc1bff398 (diff)
downloadcpython-692e26be467e1aecf8fb138c54276626f6c87fb7.zip
cpython-692e26be467e1aecf8fb138c54276626f6c87fb7.tar.gz
cpython-692e26be467e1aecf8fb138c54276626f6c87fb7.tar.bz2
Normalize whitespace for #11512 fix.
Diffstat (limited to 'Lib/test/test_cgitb.py')
-rw-r--r--Lib/test/test_cgitb.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py
index f7e851a..16a4b1a 100644
--- a/Lib/test/test_cgitb.py
+++ b/Lib/test/test_cgitb.py
@@ -5,19 +5,19 @@ import subprocess
import cgitb
class TestCgitb(unittest.TestCase):
-
+
def test_fonts(self):
text = "Hello Robbie!"
self.assertEqual(cgitb.small(text), "<small>{}</small>".format(text))
self.assertEqual(cgitb.strong(text), "<strong>{}</strong>".format(text))
self.assertEqual(cgitb.grey(text),
'<font color="#909090">{}</font>'.format(text))
-
+
def test_blanks(self):
self.assertEqual(cgitb.small(""), "")
self.assertEqual(cgitb.strong(""), "")
self.assertEqual(cgitb.grey(""), "")
-
+
def test_html(self):
try:
raise ValueError("Hello World")
@@ -35,11 +35,11 @@ class TestCgitb(unittest.TestCase):
text = cgitb.text(sys.exc_info())
self.assertIn("ValueError", text)
self.assertIn("Hello World", text)
-
+
def test_hook(self):
proc = subprocess.Popen([sys.executable, '-c',
- ('import cgitb;'
- 'cgitb.enable();'
+ ('import cgitb;'
+ 'cgitb.enable();'
'raise ValueError("Hello World")')],
stdout=subprocess.PIPE)
out = proc.stdout.read().decode(sys.getfilesystemencoding())
@@ -50,6 +50,6 @@ class TestCgitb(unittest.TestCase):
def test_main():
run_unittest(TestCgitb)
-
+
if __name__ == "__main__":
test_main()