package tumblr

import (
	"testing"
)

func TestPosts(t *testing.T) {
	b := makeTumblr().NewBlog("lacecard.tumblr.com")
	// Check for unique post
	params := PostRequestParams{
		Id: int64(76803575816),
		NotesInfo: true,
	}
	posts, err := b.Posts(params)
	if err != nil {
		t.Error(err)
		return
	}
	if len(posts) != 1 {
		t.Errorf("Specified ID, expecting one post, got %d", len(posts))
		return
	}
}

package tumblr

import (
	"testing"
)

func TestPosts(t *testing.T) {
	b := makeTumblr().NewBlog("lacecard.tumblr.com")
	// Check for unique post
	params := PostRequestParams{
		Id: int64(76803575816),
		NotesInfo: true,
	}
	pc, err := b.Posts(params)
	if err != nil {
		t.Error(err)
		return
	}
	if len(pc.Posts) != 1 {
		t.Errorf("Specified ID, expecting one post, got %d", len(pc.Posts))
		return
	}
}

Update test to reflect use of PostCollection
Update test to reflect use of PostCollection
