aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_section.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_section.py b/tests/test_section.py
index 6ece110..200e65e 100644
--- a/tests/test_section.py
+++ b/tests/test_section.py
@@ -17,7 +17,7 @@ Your standard form button.
.smaller - A smaller button
Example:
- <a href="button$modifier_class">Button</a>
+ <a href="#" class="button$modifier_class">Button</a><a href="#"[ class="$modifier_class"]?>Button</a>
Styleguide 2.1.1.
"""
@@ -36,7 +36,8 @@ Styleguide 2.1.1.
self.assertEqual(self.section.modifiers[0].description, 'Highlights when hovering.')
def test_parses_the_example(self):
- self.assertEqual(self.section.example, '<a href="button">Button</a>')
+ expected = '<a href="#" class="button">Button</a><a href="#">Button</a>'
+ self.assertEqual(self.section.example, expected)
def test_parses_the_styleguide_reference(self):
self.assertEqual(self.section.section, '2.1.1')