aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2011-11-15 23:05:09 +0100
committerMartin Vilcans <martin@librador.com>2011-11-15 23:06:05 +0100
commitbce1a38322327256ad2b718269d43371236d0bb7 (patch)
tree6e1929780c7b4b49fff6469ad60b46e86514ec5c /tests
parentdcf91bd828ba66e3682ed08bee38e85a5a5ae7ba (diff)
downloadscreenplain-bce1a38322327256ad2b718269d43371236d0bb7.tar.gz
Fixed bold/underline etc. in FDX. (Capitalization mistake.)
Diffstat (limited to 'tests')
-rw-r--r--tests/fdx_test.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/fdx_test.py b/tests/fdx_test.py
index d97782f..1e2c743 100644
--- a/tests/fdx_test.py
+++ b/tests/fdx_test.py
@@ -21,7 +21,7 @@ class OutputTests(unittest2.TestCase):
write_text(self.out, bold('hello'), False)
self.assertEqual(
self.out.getvalue(),
- ' <Text style="Bold">hello</Text>\n'
+ ' <Text Style="Bold">hello</Text>\n'
)
def test_sequential_styles(self):
@@ -30,8 +30,8 @@ class OutputTests(unittest2.TestCase):
self.assertEqual(
self.out.getvalue(),
' <Text>plain</Text>\n'
- ' <Text style="Bold">b</Text>\n'
- ' <Text style="Italic">i</Text>\n'
+ ' <Text Style="Bold">b</Text>\n'
+ ' <Text Style="Italic">i</Text>\n'
)
def test_several_styles(self):
@@ -39,9 +39,9 @@ class OutputTests(unittest2.TestCase):
write_text(self.out, rich, False)
self.assertEqual(
self.out.getvalue(),
- ' <Text style="Bold">outer</Text>\n'
- ' <Text style="Bold+Italic">inner</Text>\n'
- ' <Text style="Bold">outer</Text>\n'
+ ' <Text Style="Bold">outer</Text>\n'
+ ' <Text Style="Bold+Italic">inner</Text>\n'
+ ' <Text Style="Bold">outer</Text>\n'
)
def test_write_text_adds_line_break_if_requested(self):
@@ -49,7 +49,7 @@ class OutputTests(unittest2.TestCase):
write_text(self.out, rich, True)
self.assertEqual(
self.out.getvalue(),
- ' <Text style="Bold">outer</Text>\n'
- ' <Text style="Bold+Italic">inner</Text>\n'
- ' <Text style="Bold">outer\n</Text>\n' # note newline
+ ' <Text Style="Bold">outer</Text>\n'
+ ' <Text Style="Bold+Italic">inner</Text>\n'
+ ' <Text Style="Bold">outer\n</Text>\n' # note newline
)