From c7d7aad2913d666a9ad09d74976bb90eff03acd1 Mon Sep 17 00:00:00 2001 From: Sean Brant Date: Wed, 13 Mar 2013 22:23:50 -0500 Subject: Adds support for adding examples inside comments --- tests/test_section.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/test_section.py') diff --git a/tests/test_section.py b/tests/test_section.py index 7ba8496..6ece110 100644 --- a/tests/test_section.py +++ b/tests/test_section.py @@ -16,6 +16,9 @@ Your standard form button. .primary - Indicates button is the primary action. .smaller - A smaller button +Example: + Button + Styleguide 2.1.1. """ self.section = Section(comment.strip(), 'example.css') @@ -32,5 +35,8 @@ Styleguide 2.1.1. def test_parses_modifier_descriptions(self): self.assertEqual(self.section.modifiers[0].description, 'Highlights when hovering.') + def test_parses_the_example(self): + self.assertEqual(self.section.example, 'Button') + def test_parses_the_styleguide_reference(self): self.assertEqual(self.section.section, '2.1.1') -- cgit v1.2.3