diff --git a/lesscpy/test/testscope.py b/lesscpy/test/testscope.py new file mode 100644 index 0000000..273e495 --- /dev/null +++ b/lesscpy/test/testscope.py @@ -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() \ No newline at end of file