aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2011-11-15 22:53:50 +0100
committerMartin Vilcans <martin@librador.com>2011-11-15 22:53:50 +0100
commitdcf91bd828ba66e3682ed08bee38e85a5a5ae7ba (patch)
treef3216e39624451fc3d72f1cacfabfa73733e0c34 /tests
parentddda345a77ee4232002e5179b3ba7992a112af76 (diff)
downloadscreenplain-dcf91bd828ba66e3682ed08bee38e85a5a5ae7ba.tar.gz
Make sure upper case centered paragraph isn't parsed as dialogue.
Diffstat (limited to 'tests')
-rw-r--r--tests/spmd_test.py9
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!',