def test_with_invalid_seriesname():
    """Tests series name containing invalid filename characters
    """

    conf = """
    {"move_files_enable": true,
    "move_files_destination": "%(seriesname)s",
    "batch": true,
    "windows_safe_filenames": true}
    """

    out_data = run_tvnamer(
        with_files = ['csi.cyber.s01e03.avi'],
        with_config = conf)

    expected_files = ['CSI_ Cyber/CSI_ Cyber - [01x03] - Killer En Route.avi']

    verify_out_data(out_data, expected_files)
Tests series name containing invalid filename characters
    
tests/test_movingfiles.py