def test_replacing_ands():
    """Tests removind "and" and "&" from input files
    """
    out_data = run_tvnamer(
        with_files = ['Law & Order UK s01e01.avi'],
        with_config = """
{
    "input_filename_replacements": [
        {"is_regex": true,
        "match": "( and | & )",
        "replacement": " "}
    ],
    "output_filename_replacements": [
        {"is_regex": false,
        "match": " & ",
        "replacement": " and "}
    ],
    "custom_filename_character_blacklist": ":",
    "always_rename": true,
    "select_first": true
}
""")

    expected_files = ['Law and Order_ UK - [01x01] - Care.avi']

    verify_out_data(out_data, expected_files)
Tests removind "and" and "&" from input files
    
tests/test_custom_replacement.py