def test_endpoint_from_arn(stubbed_session, arn, endpoint): awsclient = TypedAWSClient(stubbed_session) assert endpoint == awsclient.endpoint_from_arn(arn)
def test_endpoint_from_arn(stubbed_session, arn, endpoint): awsclient = TypedAWSClient(stubbed_session) if endpoint is None: assert awsclient.endpoint_from_arn(arn) is None else: assert endpoint.items() <= awsclient.endpoint_from_arn(arn).items()