rspec/rules/S5914/python/message.adoc

16 lines
349 B
Plaintext

=== Message
for assertTrue/assertFalse
* Replace this expression; its boolean value is constant.
for assertIsNone, assertIsNotNone
* Remove this identity assertion; it will always fail.
for assertIs, assertIsNot
* Primary: Replace this "assertIs" call with an "assertEqual" call.
* Secondary: This expression creates a new object every time.