Exemplo n.º 1
0
func TestSearchMulti(t *testing.T) {
	tmdb := New()
	_, err := tmdb.SearchMulti("matrix")
	if err != nil {
		t.Errorf("It should not fail, but got an error: %s", err)
	}
}
Exemplo n.º 2
0
func TestBadURLSearchMulti(t *testing.T) {
	tmdb := New()
	tmdb.BaseURL, _ = url.Parse("http://foo.bar/")
	_, err := tmdb.SearchMulti("matrix")
	if err == nil {
		t.Errorf("It should fail because the BaseURL %s, does not exist.", tmdb.BaseURL)
	}
}