(self, path)
| 236 | self.server = werkzeug_test.Client(app, wrappers.Response) |
| 237 | |
| 238 | def _get_json(self, path): |
| 239 | response = self.server.get(path) |
| 240 | self.assertEqual(200, response.status_code) |
| 241 | self.assertEqual( |
| 242 | "application/json", response.headers.get("Content-Type") |
| 243 | ) |
| 244 | return json.loads(response.get_data().decode("utf-8")) |
| 245 | |
| 246 | def testBasicStartup(self): |
| 247 | """Start the server up and then shut it down immediately.""" |
no test coverage detected