aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fountain_test.py
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2012-02-20 00:14:58 +0100
committerMartin Vilcans <martin@librador.com>2012-02-20 00:14:58 +0100
commit10908e9db218ecd4dbdeeb704269e2dabffb72a5 (patch)
treee2d2e537fd2e538d5d064dc208cf9112fe6b9e9a /tests/fountain_test.py
parent84d6de1f11cee777e9d256b1e170794b58c3c08c (diff)
downloadscreenplain-10908e9db218ecd4dbdeeb704269e2dabffb72a5.tar.gz
Added commenting out using /* boneyard */
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):