17 lines
453 B
Go
17 lines
453 B
Go
package discogs
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestReleaseService_Release(t *testing.T) {
|
|
expectedTitle := "Elephant Riddim"
|
|
|
|
d := NewClient().UserAgent("UnitTestClient/0.0.1 +https://github.com/irlndts/go-discogs")
|
|
release, _, err := d.Release.Release(&ReleaseParams{Release_id: "8138518"})
|
|
|
|
check(t, err)
|
|
assert(t, release.Title == expectedTitle, fmt.Sprintf("Release.Title looked for %s, and received %s ", expectedTitle, release.Title))
|
|
}
|