Beispiel #1
0
def test_check_valid_filename_bad():
    with pytest.raises(ArgumentTypeError):
        check_valid_filename('3245jlnsdfnsfd234ofds')
Beispiel #2
0
def test_check_valid_filename(mock_link, mock_isfile):
    with tempfile.NamedTemporaryFile() as temp_file:
        assert check_valid_filename(temp_file) == temp_file