diff options
author | Martin Vilcans <martin@librador.com> | 2011-11-15 22:53:50 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2011-11-15 22:53:50 +0100 |
commit | dcf91bd828ba66e3682ed08bee38e85a5a5ae7ba (patch) | |
tree | f3216e39624451fc3d72f1cacfabfa73733e0c34 /tests | |
parent | ddda345a77ee4232002e5179b3ba7992a112af76 (diff) | |
download | screenplain-dcf91bd828ba66e3682ed08bee38e85a5a5ae7ba.tar.gz |
Make sure upper case centered paragraph isn't parsed as dialogue.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spmd_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/spmd_test.py b/tests/spmd_test.py index f1c62bf..d5a4615 100644 --- a/tests/spmd_test.py +++ b/tests/spmd_test.py @@ -222,6 +222,15 @@ class ParseTests(unittest2.TestCase): self.assertEquals([Action], [type(p) for p in paras]) self.assertTrue(paras[0].centered) + def test_upper_case_centered_not_parsed_as_dialog(self): + paras = list(parse([ + '> FIRST! <', + ' > SECOND! <', + '> THIRD! <', + ])) + self.assertEquals([Action], [type(p) for p in paras]) + self.assertTrue(paras[0].centered) + def test_centering_marks_in_middle_of_paragraphs_are_verbatim(self): paras = list(parse([ 'first!', |