This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
go-discogs/releases_test.go

17 lines
371 B
Go
Raw Normal View History

2016-03-10 14:25:55 +00:00
package discogs
import (
"fmt"
"testing"
)
func TestReleaseService_Release(t *testing.T) {
expectedTitle := "Elephant Riddim"
2017-02-14 19:01:50 +00:00
d := NewClient(testUserAgent, testToken)
2017-04-25 16:39:32 +00:00
release, err := d.Release.Release(8138518)
2016-03-10 14:25:55 +00:00
check(t, err)
assert(t, release.Title == expectedTitle, fmt.Sprintf("Release.Title looked for %s, and received %s ", expectedTitle, release.Title))
}