diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-08-15 09:04:19 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-08-15 09:10:42 +0100 |
| commit | 97bcf652a18808d89c8de2235e2b32ae933036b6 (patch) | |
| tree | 56fc306f8558a0b811e38ba35c51c192e51f764d /tests | |
| parent | b413c22d2e6cedac370d476a4e32aeaba7f7235b (diff) | |
Add test to ensure that style map lines beginning with hash are ignored
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/options_tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/options_tests.py b/tests/options_tests.py index 12c1af8..72c75bf 100644 --- a/tests/options_tests.py +++ b/tests/options_tests.py @@ -25,3 +25,12 @@ def default_style_mappings_are_ignored_if_include_default_style_map_is_false(): "include_default_style_map": False })["style_map"] assert_equal([style_reader.read_style("p.SectionTitle => h2")], style_map) + + +@istest +def lines_starting_with_hash_in_custom_style_map_are_ignored(): + style_map = read_options({ + "style_map": "#p.SectionTitle => h3\np.SectionTitle => h2", + "include_default_style_map": False + })["style_map"] + assert_equal([style_reader.read_style("p.SectionTitle => h2")], style_map) |
