aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/spmd_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/spmd_test.py b/tests/spmd_test.py
index b317b56..21f39ae 100644
--- a/tests/spmd_test.py
+++ b/tests/spmd_test.py
@@ -72,9 +72,13 @@ class ParseTests(unittest2.TestCase):
self.assertEquals(plain('42'), paras[0].scene_number)
self.assertEquals(plain('INT ROOM #237'), paras[0].line)
- def test_scene_number_can_be_styled(self):
+ def test_scene_number_must_be_alphanumeric(self):
paras = parse(['.SOMEWHERE #*HELLO*#'])
- self.assertEquals(italic('HELLO'), paras[0].scene_number)
+ self.assertIsNone(paras[0].scene_number)
+ self.assertEquals(
+ (plain)(u'SOMEWHERE #') + (italic)(u'HELLO') + (plain)(u'#'),
+ paras[0].line
+ )
# A Character element is any line entirely in caps, with one empty
# line before it and without an empty line after it.