(app, client)
| 1843 | |
| 1844 | |
| 1845 | def test_multi_route_rules(app, client): |
| 1846 | @app.route("/") |
| 1847 | @app.route("/<test>/") |
| 1848 | def index(test="a"): |
| 1849 | return test |
| 1850 | |
| 1851 | rv = client.open("/") |
| 1852 | assert rv.data == b"a" |
| 1853 | rv = client.open("/b/") |
| 1854 | assert rv.data == b"b" |
| 1855 | |
| 1856 | |
| 1857 | def test_multi_route_class_views(app, client): |