diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-29 22:10:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-29 22:10:12 +0000 |
| commit | 7a7d1a88427af1e87688ff6dd8637af9c7c1681a (patch) | |
| tree | 7b18b81fe41df01407a0d08ec6a0bd78f1473926 /tests/styles/parser | |
| parent | 1b5c951358623ddb97a237efab72479d9dd9c4ca (diff) | |
Add parsing for separators
Diffstat (limited to 'tests/styles/parser')
| -rw-r--r-- | tests/styles/parser/html_path_parser_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/styles/parser/html_path_parser_tests.py b/tests/styles/parser/html_path_parser_tests.py index feaa343..1e34ea1 100644 --- a/tests/styles/parser/html_path_parser_tests.py +++ b/tests/styles/parser/html_path_parser_tests.py @@ -70,6 +70,14 @@ def can_read_when_element_must_be_fresh(): @istest +def can_read_separator_for_elements(): + assert_equal( + html_paths.path([html_paths.element(["p"], separator="x")]), + read_html_path("p:separator('x')") + ) + + +@istest def can_read_ignore_element(): assert_equal( html_paths.ignore, |
