assertEqual
(first, second, msg=None)¶
Equal only first and second, is passed, or not passed. first and second can be of any type, call a specific type of a function equal judgment when determining whether or not the same, it will give a clear error message.
assertNotEqual
(first, second, msg=None)
Only first and second are not equal, it is passed, or not passed.
assertTrue
(expr, msg=None)assertFalse
(expr, msg=None)
Wherein the judgment bool (expr), not referring expr True or False
assertIs
(first, second, msg=None)assertIsNot
(first, second, msg=None)
assertIsNone
(expr, msg=None)assertIsNotNone
(expr, msg=None)
assertIn
(first, second, msg=None)assertNotIn
(first, second, msg=None)
assertIsInstance
(obj, cls, msg=None)assertNotIsInstance
(obj, cls, msg=None)