Explorar el Código

assertEquals -> assertEqual

tags/v0.2
Ben Kurtovic hace 11 años
padre
commit
6af2f3b063
Se han modificado 1 ficheros con 9 adiciones y 9 borrados
  1. +9
    -9
      tests/test_template.py

+ 9
- 9
tests/test_template.py Ver fichero

@@ -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)

Cargando…
Cancelar
Guardar