def test_check_with_eq(self, m): v = mock.sentinel.value notify_object(v) with self.assertRaises(AssertionError): m.assert_called_with(Value(v), mock.ANY)
def test_check_with_equal(self, m): v = mock.sentinel.value notify_object(v) m.assert_called_with(Matcher(Value(v)), mock.ANY)