|
@@ -172,15 +172,15 @@ class TestTemplate(TreeEqualityTestCase): |
|
|
self.assertRaises(ValueError, node1.remove, 1) |
|
|
self.assertRaises(ValueError, node1.remove, 1) |
|
|
self.assertRaises(ValueError, node1.remove, "a") |
|
|
self.assertRaises(ValueError, node1.remove, "a") |
|
|
self.assertRaises(ValueError, node2.remove, "1") |
|
|
self.assertRaises(ValueError, node2.remove, "1") |
|
|
self.assertEquals("{{foo}}", node2) |
|
|
|
|
|
self.assertEquals("{{foo||abc=}}", node3) |
|
|
|
|
|
self.assertEquals("{{foo||baz}}", node4) |
|
|
|
|
|
self.assertEquals("{{foo|b=c}}", node5) |
|
|
|
|
|
self.assertEquals("{{foo| a=|b=c}}", node6) |
|
|
|
|
|
self.assertEquals("{{foo|1 =|2=c}}", node7) |
|
|
|
|
|
self.assertEquals("{{foo|2=c}}", node8) |
|
|
|
|
|
self.assertEquals("{{foo||c}}", node9) |
|
|
|
|
|
self.assertEquals("{{foo||c}}", node10) |
|
|
|
|
|
|
|
|
self.assertEqual("{{foo}}", node2) |
|
|
|
|
|
self.assertEqual("{{foo||abc=}}", node3) |
|
|
|
|
|
self.assertEqual("{{foo||baz}}", node4) |
|
|
|
|
|
self.assertEqual("{{foo|b=c}}", node5) |
|
|
|
|
|
self.assertEqual("{{foo| a=|b=c}}", node6) |
|
|
|
|
|
self.assertEqual("{{foo|1 =|2=c}}", node7) |
|
|
|
|
|
self.assertEqual("{{foo|2=c}}", node8) |
|
|
|
|
|
self.assertEqual("{{foo||c}}", node9) |
|
|
|
|
|
self.assertEqual("{{foo||c}}", node10) |
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|
unittest.main(verbosity=2) |
|
|
unittest.main(verbosity=2) |