(self, task, expected_output=None)
| 100 | raise Exception(f"task failed: {resp2.text}") |
| 101 | |
| 102 | def check_task_fail(self, task, expected_output=None): |
| 103 | self.check_equal(task.status_code, 200) |
| 104 | if task.json()['State'] == TASK_SUCCEEDED: |
| 105 | raise Exception("task expected to fail") |
| 106 | if expected_output: |
| 107 | resp = self.get("/api/tasks/" + str(task.json()['ID']) + "/output") |
| 108 | self.check_equal(resp.json(), expected_output) |
| 109 | |
| 110 | def put(self, uri, *args, **kwargs): |
| 111 | if "json" in kwargs: |