Add test script for yocto_css and call it from testscour.py
This commit is contained in:
parent
34b06e310a
commit
7957dcd7c4
1 changed files with 5 additions and 0 deletions
|
|
@ -28,5 +28,10 @@ class Blank(unittest.TestCase):
|
||||||
self.assertEquals( len(r), 0, 'Blank string returned non-empty list')
|
self.assertEquals( len(r), 0, 'Blank string returned non-empty list')
|
||||||
self.assertEquals( type(r), type([]), 'Blank string returned non 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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue