aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fountain_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fountain_test.py')
-rw-r--r--tests/fountain_test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py
index 11a0939..5b1d386 100644
--- a/tests/fountain_test.py
+++ b/tests/fountain_test.py
@@ -3,12 +3,17 @@
# http://www.opensource.org/licenses/mit-license.php
import unittest2
-from screenplain.parsers.fountain import parse
from screenplain.parsers import fountain
from screenplain.types import (
Slug, Action, Dialog, DualDialog, Transition, Section
)
from screenplain.richstring import plain, italic, empty_string
+from StringIO import StringIO
+
+
+def parse(lines):
+ content = '\n'.join(lines)
+ return fountain.parse(StringIO(content))
class SlugTests(unittest2.TestCase):