From 97bcf652a18808d89c8de2235e2b32ae933036b6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 15 Aug 2015 09:04:19 +0100 Subject: Add test to ensure that style map lines beginning with hash are ignored --- tests/options_tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- cgit v1.2.3