def test_process_failed(self, mock_comment): obj = BugzillaWorker(self.cfg, None) obj.process({"task": "not_found"}) self.assertFalse(mock_comment.called)
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)