diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/style_reader_tests.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py index cd26a80..b1afdb7 100644 --- a/tests/style_reader_tests.py +++ b/tests/style_reader_tests.py @@ -1,6 +1,6 @@ from nose.tools import istest, assert_equal -from mammoth import html_paths, document_matchers +from mammoth import html_paths, document_matchers, documents from mammoth.style_reader import read_html_path, read_document_matcher @@ -80,6 +80,14 @@ class ReadDocumentMatcherTests(object): @istest + def reads_paragraph_ordered_list(self): + assert_equal( + document_matchers.paragraph(numbering=documents.NumberingLevel(2, is_ordered=True)), + read_document_matcher("p:ordered-list(2)") + ) + + + @istest def reads_plain_run(self): assert_equal( document_matchers.run(), |
