Pārlūkot izejas kodu

assertEquals -> assertEqual

tags/v0.2
Ben Kurtovic pirms 11 gadiem
vecāks
revīzija
6af2f3b063
1 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. +9
    -9
      tests/test_template.py

+ 9
- 9
tests/test_template.py Parādīt failu

@@ -172,15 +172,15 @@ class TestTemplate(TreeEqualityTestCase):
self.assertRaises(ValueError, node1.remove, 1)
self.assertRaises(ValueError, node1.remove, "a")
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__":
unittest.main(verbosity=2)

Notiek ielāde…
Atcelt
Saglabāt