diff options
author | Martin Vilcans <martin@librador.com> | 2011-09-26 22:41:12 +0200 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2011-09-26 22:41:12 +0200 |
commit | d09d1b2c57a2a8900c33b78840600b7cc1ca40a8 (patch) | |
tree | 8cad879d671e050f8a3ba21eb572b30dfdf9290f /tests/spmd_test.py | |
parent | 9e0b5647062faf4ea7a4f52dd143f284e8b2a954 (diff) | |
download | screenplain-d09d1b2c57a2a8900c33b78840600b7cc1ca40a8.tar.gz |
Use rich strings for all content.
Diffstat (limited to 'tests/spmd_test.py')
-rw-r--r-- | tests/spmd_test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spmd_test.py b/tests/spmd_test.py index d4e8c5d..1c25f05 100644 --- a/tests/spmd_test.py +++ b/tests/spmd_test.py @@ -104,6 +104,21 @@ class ParseTests(unittest2.TestCase): self.assertEquals('STEEL', dual.right.character) self.assertEquals([(False, 'Fuck retirement!')], dual.right.blocks) + def test_dual_dialog_with_empty_right_dialog_is_ordinary_dialog(self): + paras = list(parse([ + 'BRICK', + 'Nice retirement.', + '||', + ])) + self.assertEquals([Dialog], [type(p) for p in paras]) + dialog = paras[0] + self.assertEqual('BRICK', dialog.character) + self.assertEqual([ + (False, 'Nice retirement.'), + (False, '||') + ], dialog.blocks) + + def test_standard_transition(self): paras = list(parse([ |