Skip to content

Instantly share code, notes, and snippets.

@maxcountryman
Last active December 11, 2015 05:28
Show Gist options
  • Save maxcountryman/4552573 to your computer and use it in GitHub Desktop.
Save maxcountryman/4552573 to your computer and use it in GitHub Desktop.
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