()
| 250 | |
| 251 | |
| 252 | def test_environ_defaults(): |
| 253 | environ = create_environ("/foo") |
| 254 | assert environ["PATH_INFO"] == "/foo" |
| 255 | m = r.Map([r.Rule("/foo", endpoint="foo"), r.Rule("/bar", endpoint="bar")]) |
| 256 | a = m.bind_to_environ(environ) |
| 257 | assert a.match("/foo") == ("foo", {}) |
| 258 | assert a.match() == ("foo", {}) |
| 259 | assert a.match("/bar") == ("bar", {}) |
| 260 | pytest.raises(NotFound, a.match, "/bars") |
| 261 | |
| 262 | |
| 263 | def test_environ_nonascii_pathinfo(): |
nothing calls this directly
no test coverage detected