aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_modifier.py
diff options
context:
space:
mode:
authorSean Brant2013-03-13 22:23:50 -0500
committerSean Brant2013-03-13 22:23:50 -0500
commitc7d7aad2913d666a9ad09d74976bb90eff03acd1 (patch)
tree2085154feb77942ef8760f9c4eb4486cc24687f7 /tests/test_modifier.py
parent083e4dd9ed498ba2ef5133943fadb1fab7e71276 (diff)
downloadpykss-c7d7aad2913d666a9ad09d74976bb90eff03acd1.tar.bz2
Adds support for adding examples inside comments
Diffstat (limited to 'tests/test_modifier.py')
-rw-r--r--tests/test_modifier.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_modifier.py b/tests/test_modifier.py
index 1e109d8..8acb594 100644
--- a/tests/test_modifier.py
+++ b/tests/test_modifier.py
@@ -13,3 +13,10 @@ class ModiferTestCase(unittest.TestCase):
def test_handles_multiple_classes(self):
self.assertTrue('callout extreme' in self.modifier.class_name)
+
+ def test_add_example(self):
+ example = '<i class="icon$modifier_class"></i>'
+ expected = '<i class="icon callout extreme pseudo-class-hover"></i>'
+
+ self.modifier.add_example(example)
+ self.assertEqual(self.modifier.example, expected)