コード例 #1
0
def test_endpoint_from_arn(stubbed_session, arn, endpoint):
    awsclient = TypedAWSClient(stubbed_session)
    assert endpoint == awsclient.endpoint_from_arn(arn)
コード例 #2
0
ファイル: test_awsclient.py プロジェクト: tied/chalice
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()