Last active
December 11, 2015 05:28
-
-
Save maxcountryman/4552573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test_classy/test_blueprints.py b/test_classy/test_blueprints.py | |
index 6ea0284..71f079c 100644 | |
--- a/test_classy/test_blueprints.py | |
+++ b/test_classy/test_blueprints.py | |
@@ -65,8 +65,10 @@ def test_bp_custom_http_method(): | |
resp = client.post("/basic/route3/") | |
eq_("Custom HTTP Method", resp.data) | |
+def test_bp_url_prefix(): | |
+ foo = Blueprint('foo', __name__) | |
+ BasicView.register(foo) | |
+ app.register_blueprint(foo, url_prefix='/foo') | |
- | |
- | |
- | |
- | |
+ resp = client.get('/foo/') | |
+ eq_('Index', resp.data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment