def test_returns_mismatch_when_mock_has_been_called(self): mock = Mock() mock(1, 2, a=5) matcher = MockNotCalled() result = matcher.match(mock) self.assertMismatch(result, "mock has been called")
def test_returns_none_mock_has_not_been_called(self): mock = Mock() matcher = MockNotCalled() result = matcher.match(mock) self.assertIsNone(result)