Browse Source

Added empty expression to line generator.

Taddeus Kroes 14 years ago
parent
commit
6adf39c0d0
1 changed files with 2 additions and 5 deletions
  1. 2 5
      tests/test_line.py

+ 2 - 5
tests/test_line.py

@@ -6,11 +6,8 @@ from line import generate_line
 
 class TestLine(unittest.TestCase):
 
-    def setUp(self):
-        pass
-
-    def tearDown(self):
-        pass
+    def test_empty(self):
+        self.assertEquals(generate_line(None), '<empty expression>')
 
     def test_simple(self):
         l0, l1 = L(1), L(2)