v4.0.0 Release Notes

4.0.0 Release Notes

4.0.0

New Features

  • This release added new checks related to unittest module:

    • [H211] Change assertTrue(isinstance(A, B)) by optimal assert like assertIsInstance(A, B).

    • [H212] Change assertEqual(type(A), B) by optimal assert like assertIsInstance(A, B)

    • [H213] Check for usage of deprecated assertRaisesRegexp

    • [H214] Change assertTrue/False(A in/not in B, message) to the more specific assertIn/NotIn(A, B, message)

    • [H215] Change assertEqual(A in B, True), assertEqual(True, A in B), assertEqual(A in B, False) or assertEqual(False, A in B) to the more specific assertIn/NotIn(A, B)