Ejemplo n.º 1
0
def test_get_client(ecs_client):
    ecs_client.return_value = None
    client = get_client('access_key_id', 'secret_access_key', 'region',
                        'profile')
    ecs_client.assert_called_once_with('access_key_id', 'secret_access_key',
                                       'region', 'profile')
    assert isinstance(client, EcsClient)
Ejemplo n.º 2
0
def test_get_client(ecs_client):
    ecs_client.return_value = None
    client = get_client('access_key_id', 'secret_access_key', 'region', 'profile')
    ecs_client.assert_called_once_with('access_key_id', 'secret_access_key', 'region', 'profile')
    assert isinstance(client, EcsClient)