aboutsummaryrefslogtreecommitdiff
path: root/tests/styles/parser
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 21:28:07 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 21:33:41 +0000
commit6e41febe26e65b6233bd47684a0b1a9781c1f804 (patch)
treed2368ad41a784e7edf4262fb5ccb28a112f75a46 /tests/styles/parser
parent8490b30a81597c75848f87611ca9ca011851db12 (diff)
Raise error on unrecognised list type
Diffstat (limited to 'tests/styles/parser')
-rw-r--r--tests/styles/parser/document_matcher_parser_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/styles/parser/document_matcher_parser_tests.py b/tests/styles/parser/document_matcher_parser_tests.py
index 3977cbb..e34bb79 100644
--- a/tests/styles/parser/document_matcher_parser_tests.py
+++ b/tests/styles/parser/document_matcher_parser_tests.py
@@ -55,6 +55,12 @@ def reads_paragraph_unordered_list():
@istest
+def unrecognised_list_type_raises_error():
+ error = assert_raises(LineParseError, lambda: read_document_matcher("p:blah"))
+ assert_equal("Unrecognised list type: blah", str(error))
+
+
+@istest
def reads_plain_run():
assert_equal(
document_matchers.run(),