Пример #1
0
def test_artist_search_returns_correct_result_simple():
    # REVIEW: This one is a bit fuzzy, definitely one to revisit.

    data = musicbrainz.search(name="The Cure")
    assert data.name == "The Cure"
Пример #2
0
def test_artist_search_returns_correct_result_unicode2():
    # REVIEW: This one is a bit fuzzy, definitely one to revisit.

    data = musicbrainz.search(name="ℑ⊇≥◊≤⊆ℜ")  # Yes, this is a real band
    assert data.name == "ℑ⊇≥◊≤⊆ℜ"
Пример #3
0
def test_artist_search_returns_exception_on_error():
    # REVIEW: This one is a bit fuzzy, definitely one to revisit.
    with pytest.raises(click.exceptions.ClickException):
        musicbrainz.search(name="")
Пример #4
0
def test_artist_search_returns_correct_result_escapes():
    # REVIEW: This one is a bit fuzzy, definitely one to revisit.

    data = musicbrainz.search(name="Sunn O)))")
    assert data.name == "Sunn O)))"