def test_assert_equal_none(self): self.assertEqual(len(list(checks.assert_equal_none( "self.assertEqual(A, None)", "f"))), 1) self.assertEqual(len(list(checks.assert_equal_none( "self.assertEqual(None, A)", "f"))), 1) self.assertEqual( len(list(checks.assert_equal_none("self.assertIsNone()", "f"))), 0)
def test_assert_equal_none(self, line, result): self.assertEqual(result, len(list(checks.assert_equal_none(line, line, "f"))))