@@ -688,12 +688,12 @@ def test_similar_dynamic_routes():
688
688
# r'^/accounts/(?P<account_id>\\w+\\b)$' # noqa: E800
689
689
@app .get ("/accounts/<account_id>" )
690
690
def get_account (account_id : str ):
691
- assert account_id == "single_account"
691
+ assert account_id in ( "single_account" , "single account" )
692
692
693
693
# r'^/accounts/(?P<account_id>\\w+\\b)/source_networks$' # noqa: E800
694
694
@app .get ("/accounts/<account_id>/source_networks" )
695
695
def get_account_networks (account_id : str ):
696
- assert account_id == "nested_account"
696
+ assert account_id in ( "nested_account" , "nested account" )
697
697
698
698
# r'^/accounts/(?P<account_id>\\w+\\b)/source_networks/(?P<network_id>\\w+\\b)$' # noqa: E800
699
699
@app .get ("/accounts/<account_id>/source_networks/<network_id>" )
@@ -706,10 +706,18 @@ def get_network_account(account_id: str, network_id: str):
706
706
event ["path" ] = "/accounts/single_account"
707
707
app .resolve (event , None )
708
708
709
+ event ["resource" ] = "/accounts/{account_id}"
710
+ event ["path" ] = "/accounts/single account"
711
+ app .resolve (event , None )
712
+
709
713
event ["resource" ] = "/accounts/{account_id}/source_networks"
710
714
event ["path" ] = "/accounts/nested_account/source_networks"
711
715
app .resolve (event , None )
712
716
717
+ event ["resource" ] = "/accounts/{account_id}/source_networks"
718
+ event ["path" ] = "/accounts/nested account/source_networks"
719
+ app .resolve (event , None )
720
+
713
721
event ["resource" ] = "/accounts/{account_id}/source_networks/{network_id}"
714
722
event ["path" ] = "/accounts/nested_account/source_networks/network"
715
723
app .resolve (event , {})
0 commit comments