Beispiel #1
0
def test_remove_basic_dup_files(dup_file):
    music_dict = blimzu.get_music_dict(test_dir)
    dup_files = blimzu.find_basic_dup_files(music_dict)
    blimzu.remove_basic_dup_files(dup_files, music_dict)
    music_dict = blimzu.get_music_dict(test_dir)
    put_dup_files_back()
    assert dup_file not in music_dict
Beispiel #2
0
def test_find_basic_dup_files_length():
    music_dict = blimzu.get_music_dict(test_dir)
    dup_files = blimzu.find_basic_dup_files(music_dict)
    assert len(dup_files) == 5
Beispiel #3
0
def test_get_music_dict_legal(legal_file):
    music_dict = blimzu.get_music_dict(test_dir)
    print music_dict
    assert legal_file in music_dict
Beispiel #4
0
def test_find_basic_dup_files_exists(dup_file):
    music_dict = blimzu.get_music_dict(test_dir)
    dup_files = blimzu.find_basic_dup_files(music_dict)
    assert any(e[1] == dup_file for e in dup_files)
Beispiel #5
0
def test_get_music_dict_illegal(illegal_file):
    music_dict = blimzu.get_music_dict(test_dir)
    assert illegal_file not in music_dict