From 6e41febe26e65b6233bd47684a0b1a9781c1f804 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:28:07 +0000 Subject: Raise error on unrecognised list type --- tests/styles/parser/document_matcher_parser_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/styles/parser') 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 @@ -54,6 +54,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( -- cgit v1.2.3