Example #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)
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)
Example #3
0
def test_make_destination_callable(save_to):
    assert callable(transfer._make_destination_callable(save_to))
def test_make_destination_callable(save_to):
    assert isinstance(transfer._make_destination_callable(save_to), collections.Callable)