aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fdx_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdx_test.py')
-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
)