def __run_parseTask_test(self, method, params, expect): self.session.getTaskRequest.return_value = params lines = _parseTaskParams(self.session, method, 1, '/mnt/koji') self.assertEquals(lines, expect)