Ejemplo n.º 1
0
def test_make_destination_callable_raises():
    with pytest.raises(TypeError) as excinfo:
        transfer._make_destination_callable(object())

    assert "Destination must be a string, writable or callable object." == \
        str(excinfo.value)
Ejemplo n.º 2
0
def test_make_destination_callable_raises():
    with pytest.raises(TypeError) as excinfo:
        transfer._make_destination_callable(object())

    assert "Destination must be a string, writable or callable object." == \
        str(excinfo.value)
Ejemplo n.º 3
0
def test_make_destination_callable(save_to):
    assert callable(transfer._make_destination_callable(save_to))
Ejemplo n.º 4
0
def test_make_destination_callable(save_to):
    assert isinstance(transfer._make_destination_callable(save_to), collections.Callable)