(app)
| 5 | |
| 6 | |
| 7 | def common_test(app): |
| 8 | c = app.test_client() |
| 9 | |
| 10 | assert c.get("/").data == b"GET" |
| 11 | assert c.post("/").data == b"POST" |
| 12 | assert c.put("/").status_code == 405 |
| 13 | meths = parse_set_header(c.open("/", method="OPTIONS").headers["Allow"]) |
| 14 | assert sorted(meths) == ["GET", "HEAD", "OPTIONS", "POST"] |
| 15 | |
| 16 | |
| 17 | def test_basic_view(app): |
no test coverage detected