def test_woot(self): with mock.patch("pubbot.vcs.receivers.say") as say: receivers.svnwoot(None, 1337) say.assert_called_with(content="r1337 - \o/")
def test_not_woot(self): with mock.patch("pubbot.vcs.receivers.say") as say: receivers.svnwoot(None, 1336) self.assertEqual(say.called, 0)