package mb import ( "testing" "github.com/stretchr/testify/assert" ) func test_mb_search(t *testing.T) { m := NewMusicBrainzSearch() m.search_for_artist("Metallica") assert.Equal(t, m.get_artist_name(), "Metallica") } func test_error_should_be_nil(t *testing.T) { m := NewMusicBrainzSearch() err := m.search_for_artist("Metallica") assert.Nil(t, err, "err should be nil if found artist") }