diff options
author | Martin Vilcans <martin@librador.com> | 2012-07-08 22:21:42 +0200 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2012-07-08 22:21:42 +0200 |
commit | 6c4e892d32cafa6c8a78cf0ffa268b727f18a684 (patch) | |
tree | 3f57595dd8fb60cdc26b571e0f5f403f7ad0ce36 /tests/fountain_test.py | |
parent | ac4bc25392d5e406e9f2232982fb147ce6efa845 (diff) | |
download | screenplain-6c4e892d32cafa6c8a78cf0ffa268b727f18a684.tar.gz |
Only a single period creates a slug.
Fixes #4
Diffstat (limited to 'tests/fountain_test.py')
-rw-r--r-- | tests/fountain_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py index 47bd270..02bb6be 100644 --- a/tests/fountain_test.py +++ b/tests/fountain_test.py @@ -64,6 +64,15 @@ class SlugTests(unittest2.TestCase): self.assertEquals(Slug, type(paras[0])) self.assertEquals(plain('SNIPER SCOPE POV'), paras[0].line) + def test_more_than_one_period_does_not_create_slug(self): + paras = parse([ + '..AND THEN...', + '', + ]) + self.assertEquals(1, len(paras)) + self.assertEquals(Action, type(paras[0])) + self.assertEquals(plain('..AND THEN...'), paras[0].lines[0]) + def test_scene_number_is_parsed(self): paras = parse(['EXT SOMEWHERE - DAY #42#']) self.assertEquals(plain('EXT SOMEWHERE - DAY'), paras[0].line) |