aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/style_reader_tests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py
new file mode 100644
index 0000000..df2b622
--- /dev/null
+++ b/tests/style_reader_tests.py
@@ -0,0 +1,14 @@
+from nose.tools import istest, assert_equal
+
+from mammoth import html_paths
+from mammoth.style_reader import read_html_path
+
+
+@istest
+class ReadHtmlPathTests(object):
+ @istest
+ def can_read_single_element(self):
+ assert_equal(
+ html_paths.path([html_paths.element("p")]),
+ read_html_path("p")
+ )