diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/style_reader_tests.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py index 80c3124..433b8b3 100644 --- a/tests/style_reader_tests.py +++ b/tests/style_reader_tests.py @@ -1,7 +1,7 @@ from nose.tools import istest, assert_equal -from mammoth import html_paths -from mammoth.style_reader import read_html_path +from mammoth import html_paths, document_matchers +from mammoth.style_reader import read_html_path, read_document_matcher @istest @@ -59,3 +59,13 @@ class ReadHtmlPathTests(object): html_paths.path([html_paths.element(["p"], fresh=True)]), read_html_path("p:fresh") ) + + +@istest +class ReadDocumentMatcherTests(object): + @istest + def reads_plain_paragraph(self): + assert_equal( + document_matchers.paragraph(), + read_document_matcher("p") + ) |
