more tests

This commit is contained in:
jtm
2012-02-12 13:00:29 +00:00
parent 1f19444f74
commit 2bfdf0cc5b

16
lesscpy/test/testscope.py Normal file
View File

@@ -0,0 +1,16 @@
import unittest
if __name__ == '__main__':
import bootstrap
from lesscpy.lessc.scope import Scope
class TestScope(unittest.TestCase):
def test_scope(self):
s = Scope()
self.assertRaises(IndexError, s.pop)
s.push()
s.pop()
self.assertRaises(IndexError, s.pop)
self.assertRaises(IndexError, s.variables, '@var')
if __name__ == '__main__':
unittest.main()