diff options
Diffstat (limited to 'tests/fountain_test.py')
-rw-r--r-- | tests/fountain_test.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py index ab3e9e7..0ca3c72 100644 --- a/tests/fountain_test.py +++ b/tests/fountain_test.py @@ -5,7 +5,7 @@ import unittest2 from screenplain.parsers import fountain from screenplain.types import ( - Slug, Action, Dialog, DualDialog, Transition, Section + Slug, Action, Dialog, DualDialog, Transition, Section, PageBreak ) from screenplain.richstring import plain, italic, empty_string from StringIO import StringIO @@ -481,5 +481,15 @@ class TitlePageTests(unittest2.TestCase): ] self.assertIsNone(fountain.parse_title_page(lines)) + +class PageBreakTests(unittest2.TestCase): + def test_page_break_sets_page_break_flag_on_next_paragraph(self): + paras = list(parse([ + '====', + '', + 'So here we go' + ])) + self.assertEquals([PageBreak, Action], [type(p) for p in paras]) + if __name__ == '__main__': unittest2.main() |