Beispiel #1
0
def test_same_title():
    art1 = 'Guns and Roses'
    art2 = 'Guns + Roses'
    result = normalizer.same_title(art1, art2)
    assert result is True
Beispiel #2
0
def test_same_title_close_by_similarity():
    art1 = 'Phantom of Ophera'
    art2 = 'phanton of opera'
    result = normalizer.same_title(art1, art2)
    assert result is True
Beispiel #3
0
def test_different_titles():
    art1 = 'Metallica'
    art2 = 'Guns and Roses'
    result = normalizer.same_title(art1, art2)
    assert result is False
Beispiel #4
0
def test_same_title_one_contains_another_2():
    art1 = 'November Rain - Guns AND Roses'
    art2 = 'Guns and Roses'
    result = normalizer.same_title(art1, art2)
    assert result is True