diff options
author | Martin Vilcans <martin@librador.com> | 2012-03-12 23:24:32 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2012-03-12 23:24:32 +0100 |
commit | ac4bc25392d5e406e9f2232982fb147ce6efa845 (patch) | |
tree | 579312983b6037dc1d80d072e0662c24335b2337 /tests/fountain_test.py | |
parent | ebed2982048d1ded7c39dae5cf20944b299e9f45 (diff) | |
download | screenplain-ac4bc25392d5e406e9f2232982fb147ce6efa845.tar.gz |
Support mixed sections and synopsises
Diffstat (limited to 'tests/fountain_test.py')
-rw-r--r-- | tests/fountain_test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py index 69426db..47bd270 100644 --- a/tests/fountain_test.py +++ b/tests/fountain_test.py @@ -113,6 +113,16 @@ class SectionTests(unittest2.TestCase): self.assertEquals(1, paras[2].level) self.assertEquals(plain('first level again'), paras[2].text) + def test_multiple_sections_with_synopsis(self): + paras = parse([ + '# first level', + '= level one synopsis', + '## second level', + ]) + self.assertEquals([ + Section(plain(u'first level'), 1, 'level one synopsis'), + Section(plain(u'second level'), 2, None), + ], paras) class DialogTests(unittest2.TestCase): # A Character element is any line entirely in caps, with one empty |