diff options
Diffstat (limited to 'yarnlib')
-rw-r--r-- | yarnlib/block_parser_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yarnlib/block_parser_tests.py b/yarnlib/block_parser_tests.py index 45bfe67..77a96e1 100644 --- a/yarnlib/block_parser_tests.py +++ b/yarnlib/block_parser_tests.py @@ -61,6 +61,12 @@ class BlockParserTests(unittest.TestCase): self.parser.parse_blocks, ['STORY foo\nblah']) + def test_raises_error_for_step_outside_story(self): + self.assertRaises( + yarnlib.BlockError, + self.parser.parse_blocks, + ['GIVEN foo']) + def test_parses_implements_in_a_block_by_itself(self): self.parser.parse_blocks(['IMPLEMENTS GIVEN foo\ntrue']) impls = self.parser.implementations |