Skip to content

Commit

Permalink
Add test for existing album method.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxz committed Feb 20, 2014
1 parent 8c39fe2 commit 077b61a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions sharky_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ package sharky

import "testing"

const KEY = ""
const SECRET = ""
const LOGIN = ""
const PASSWORD = ""
const KEY = "golang_nikolay"
const SECRET = "3a27a148229e9daceb45e263646b8d8b"
const LOGIN = "[email protected]"
const PASSWORD = "Mukosolv@n123grooveshark"

func setUp() *Sharky {
return New(KEY, SECRET)
Expand Down Expand Up @@ -80,3 +80,12 @@ func TestGetAlbumSongs(t *testing.T) {
t.Error("Failed to find album songs")
}
}

func TestGetDoesAlbumExist(t *testing.T) {
sharky := setUp()
doesAlbumExist := sharky.GetDoesAlbumExist("1000")

if !doesAlbumExist {
t.Error("Failed to find album songs")
}
}

0 comments on commit 077b61a

Please sign in to comment.