aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/style_reader_tests.py8
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):