コード例 #1
0
ファイル: test_awsclient.py プロジェクト: tied/chalice
def test_resolve_endpoint(stubbed_session, service, region, endpoint):
    awsclient = TypedAWSClient(stubbed_session)
    if endpoint is None:
        assert awsclient.resolve_endpoint(service, region) is None
    else:
        assert endpoint.items() <= awsclient.resolve_endpoint(service,
                                                              region).items()
コード例 #2
0
def test_resolve_endpoint(stubbed_session, service, region, endpoint):
    awsclient = TypedAWSClient(stubbed_session)
    assert endpoint == awsclient.resolve_endpoint(service, region)