From 45dd2a08ff487a5f30fb9ac516d4dcf597daedad Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Fri, 6 Aug 2021 13:28:14 -0500 Subject: [PATCH] Update test bp copy --- tests/test_blueprint_copy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_blueprint_copy.py b/tests/test_blueprint_copy.py index 4bb7ccab..9d87b412 100644 --- a/tests/test_blueprint_copy.py +++ b/tests/test_blueprint_copy.py @@ -19,6 +19,9 @@ def test_bp_copy(app: Sanic): bp3 = bp1.copy(name="test_bp3", version=3, with_registration=True) bp4 = bp1.copy(name="test_bp4", version=4, with_ctx=True) bp5 = bp1.copy(name="test_bp5", version=5, with_registration=False) + assert id(bp2) != id(bp3) + assert id(bp3) != id(bp4) + assert id(bp4) != id(bp5) app.blueprint(bp5) _, response = app.test_client.get("/v1/page")