From 7957dcd7c443ab8e01012a4ad158f9cd7df101aa Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Sun, 7 Feb 2010 08:45:57 -0600 Subject: [PATCH] Add test script for yocto_css and call it from testscour.py --- testcss.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testcss.py b/testcss.py index d6936e9..ac65571 100755 --- a/testcss.py +++ b/testcss.py @@ -28,5 +28,10 @@ class Blank(unittest.TestCase): self.assertEquals( len(r), 0, 'Blank string returned non-empty list') self.assertEquals( type(r), type([]), 'Blank string returned non list') +class ElementSelector(unittest.TestCase): + def runTest(self) + r = parseCssString('foo {}') + self.assertEquals( len(r), 1, 'Element selector not returned') + if __name__ == '__main__': unittest.main()