diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:26:01 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:26:01 +0000 |
| commit | b5606471d456a4d08ac18a97b58e353938ce39f9 (patch) | |
| tree | 289c3671a5ec3126f0f3052d1f2725f909e34e69 /tests | |
| parent | b09f43356b49922fc7c03a998f696af69a7ffb26 (diff) | |
Allow empty HTML paths
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/style_reader_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py index c4ac513..464cb4a 100644 --- a/tests/style_reader_tests.py +++ b/tests/style_reader_tests.py @@ -7,11 +7,19 @@ from mammoth.style_reader import read_html_path, read_document_matcher, read_sty @istest class ReadHtmlPathTests(object): @istest + def can_read_empty_path(self): + assert_equal( + html_paths.empty, + read_html_path("") + ) + + @istest def can_read_single_element(self): assert_equal( html_paths.path([html_paths.element(["p"])]), read_html_path("p") ) + @istest def can_read_choice_of_two_elements(self): |
