forked from ryanbradynd05/go-tmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount_test.go
46 lines (37 loc) · 1.3 KB
/
account_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package tmdb
import (
. "gopkg.in/check.v1"
)
func (s *TmdbSuite) TestGetAccountInfo(c *C) {
result, err := s.tmdb.GetAccountInfo(s.session)
s.baseTest(&result, err, c)
c.Assert(result.Username, Equals, s.user)
}
func (s *TmdbSuite) TestGetAccountLists(c *C) {
result, err := s.tmdb.GetAccountLists(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountFavoriteMovies(c *C) {
result, err := s.tmdb.GetAccountFavoriteMovies(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountFavoriteTv(c *C) {
result, err := s.tmdb.GetAccountFavoriteTv(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountRatedMovies(c *C) {
result, err := s.tmdb.GetAccountRatedMovies(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountRatedTv(c *C) {
result, err := s.tmdb.GetAccountRatedTv(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountWatchlistMovies(c *C) {
result, err := s.tmdb.GetAccountWatchlistMovies(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}
func (s *TmdbSuite) TestGetAccountWatchlistTv(c *C) {
result, err := s.tmdb.GetAccountWatchlistTv(s.accountID, s.session, nil)
s.baseTest(&result, err, c)
}