()
| 1019 | |
| 1020 | |
| 1021 | def test_allowed_methods_querying(): |
| 1022 | m = r.Map( |
| 1023 | [r.Rule("/<foo>", methods=["GET", "HEAD"]), r.Rule("/foo", methods=["POST"])] |
| 1024 | ) |
| 1025 | a = m.bind("example.org") |
| 1026 | assert sorted(a.allowed_methods("/foo")) == ["GET", "HEAD", "POST"] |
| 1027 | |
| 1028 | |
| 1029 | def test_external_building_with_port(): |
nothing calls this directly
no test coverage detected