def test_customer_user_access_path(): customer_id = "squid" user_id = "clam" expected = "customers/{customer_id}/customerUserAccesses/{user_id}".format( customer_id=customer_id, user_id=user_id, ) actual = CustomerUserAccessServiceClient.customer_user_access_path( customer_id, user_id) assert expected == actual
def test_parse_customer_user_access_path(): expected = { "customer_id": "whelk", "user_id": "octopus", } path = CustomerUserAccessServiceClient.customer_user_access_path( **expected) # Check that the path construction is reversible. actual = CustomerUserAccessServiceClient.parse_customer_user_access_path( path) assert expected == actual