(app, client)
| 1815 | |
| 1816 | |
| 1817 | def test_multi_route_rules(app, client): |
| 1818 | @app.route("/") |
| 1819 | @app.route("/<test>/") |
| 1820 | def index(test="a"): |
| 1821 | return test |
| 1822 | |
| 1823 | rv = client.open("/") |
| 1824 | assert rv.data == b"a" |
| 1825 | rv = client.open("/b/") |
| 1826 | assert rv.data == b"b" |
| 1827 | |
| 1828 | |
| 1829 | def test_multi_route_class_views(app, client): |