aboutsummaryrefslogtreecommitdiff
path: root/tests/style_reader_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-13 17:41:57 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-13 17:41:57 +0000
commit52a0281824ebe97f4233066b73a1e9739b639d9d (patch)
tree6e704b641c11b97fc141a7c0f4a44269a3f0ec7f /tests/style_reader_tests.py
parentd091e47adf6cd69d986cac935de9d61b7da17f82 (diff)
Parse ordered list document matcher
Diffstat (limited to 'tests/style_reader_tests.py')
-rw-r--r--tests/style_reader_tests.py10
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(),