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