From 52a0281824ebe97f4233066b73a1e9739b639d9d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 13 Dec 2013 17:41:57 +0000 Subject: Parse ordered list document matcher --- tests/style_reader_tests.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/style_reader_tests.py') 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 @@ -79,6 +79,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( -- cgit v1.2.3