Beispiel #1
0
 def test_process_failed(self, mock_comment):
     obj = BugzillaWorker(self.cfg, None)
     obj.process({"task": "not_found"})
     self.assertFalse(mock_comment.called)
Beispiel #2
0
 def test_process_ok(self, mock_comment):
     task = {"task": "comment"}
     obj = BugzillaWorker(self.cfg, None)
     obj.process(task)
     mock_comment.assert_called_once_with(task)