def test_customer_user_access_invitation_path(): customer_id = "squid" invitation_id = "clam" expected = "customers/{customer_id}/customerUserAccessInvitations/{invitation_id}".format( customer_id=customer_id, invitation_id=invitation_id, ) actual = CustomerUserAccessInvitationServiceClient.customer_user_access_invitation_path( customer_id, invitation_id) assert expected == actual
def test_parse_customer_user_access_invitation_path(): expected = { "customer_id": "whelk", "invitation_id": "octopus", } path = CustomerUserAccessInvitationServiceClient.customer_user_access_invitation_path( **expected) # Check that the path construction is reversible. actual = CustomerUserAccessInvitationServiceClient.parse_customer_user_access_invitation_path( path) assert expected == actual