assertEquals vs. assertEqual in python

前端 未结 4 1504
难免孤独
难免孤独 2020-12-23 08:25

Is there a difference between assertEquals and assertEqual in the python unittest.TestCase?

And if there is not, why are there

4条回答
  •  温柔的废话
    2020-12-23 09:05

    Not just for Python 3.x, since Python 2.7 assertEquals has been deprecated as well:

    Method Name            | Deprecated alias(es)
    _________________________________________________________
    assertEqual()          | failUnlessEqual, assertEquals
    

    From 25.3.7.1.1. Deprecated aliases

提交回复
热议问题