diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fountain_test.py | 1 | ||||
-rw-r--r-- | tests/richstring_test.py | 14 |
2 files changed, 9 insertions, 6 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py index 02bb6be..ab3e9e7 100644 --- a/tests/fountain_test.py +++ b/tests/fountain_test.py @@ -133,6 +133,7 @@ class SectionTests(unittest2.TestCase): Section(plain(u'second level'), 2, None), ], paras) + class DialogTests(unittest2.TestCase): # A Character element is any line entirely in caps, with one empty # line before it and without an empty line after it. diff --git a/tests/richstring_test.py b/tests/richstring_test.py index 5e5f7f5..65e1ea7 100644 --- a/tests/richstring_test.py +++ b/tests/richstring_test.py @@ -91,7 +91,8 @@ class RichStringTests(unittest2.TestCase): class ParseEmphasisTests(unittest2.TestCase): def test_parse_without_emphasis(self): - self.assertEquals(plain('Hello'), parse_emphasis('Hello'), + self.assertEquals( + plain('Hello'), parse_emphasis('Hello'), 'Expected parse_emphasis to return a plain string') def test_parse_bold(self): @@ -174,11 +175,12 @@ class ParseEmphasisTests(unittest2.TestCase): parse_emphasis( 'You can _underline_ words, make them **bold** or *italic* ' 'or even ***bold italic.***' - ), - (plain('You can ') + underline('underline') + - plain(' words, make them ') + bold('bold') + plain(' or ') + - italic('italic') + plain(' or even ') + - (bold + italic)('bold italic.')) + ), ( + plain('You can ') + underline('underline') + + plain(' words, make them ') + bold('bold') + plain(' or ') + + italic('italic') + plain(' or even ') + + (bold + italic)('bold italic.') + ) ) def test_simplified_complicated(self): |