From fa90f078e5de5a1acbd9eda529db17ab1b2b4cb3 Mon Sep 17 00:00:00 2001 From: Sean Brant Date: Sat, 9 Mar 2013 15:57:26 -0600 Subject: Initial Import --- tests/test_modifier.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_modifier.py (limited to 'tests/test_modifier.py') diff --git a/tests/test_modifier.py b/tests/test_modifier.py new file mode 100644 index 0000000..1e109d8 --- /dev/null +++ b/tests/test_modifier.py @@ -0,0 +1,15 @@ +import unittest + +from pykss.modifier import Modifier + + +class ModiferTestCase(unittest.TestCase): + + def setUp(self): + self.modifier = Modifier('.callout.extreme:hover', 'calls things out') + + def test_handles_pseudo(self): + self.assertTrue('pseudo-class-hover' in self.modifier.class_name) + + def test_handles_multiple_classes(self): + self.assertTrue('callout extreme' in self.modifier.class_name) -- cgit v1.2.3