def test_movie_lists(self): list = rt.Lists() list.movie_lists() self.assertTrue('box_office' in list.links) self.assertTrue('in_theaters' in list.links) self.assertTrue('opening' in list.links) self.assertTrue('upcoming' in list.links)
def test_dvd_lists(self): list = rt.Lists() list.dvd_lists() self.assertTrue('top_rentals' in list.links) self.assertTrue('current_releases' in list.links) self.assertTrue('new_releases' in list.links) self.assertTrue('upcoming' in list.links)
def test_dvds_upcoming(self): list = rt.Lists() list.dvds_upcoming(page_limit=5) self.assertEqual(list.links['self'], DVD_UPCOMING_LINK)
def test_dvds_new_releases(self): list = rt.Lists() list.dvds_new_releases(page_limit=4) self.assertEqual(list.links['self'], DVD_NEW_RELEASES_LINK)
def test_dvds_current_releases(self): list = rt.Lists() list.dvds_current_releases(page_limit=3) self.assertEqual(list.links['self'], DVD_CURRENT_RELEASES_LINK)
def test_dvds_top_rentals(self): list = rt.Lists() list.dvds_top_rentals(limit=2) self.assertEqual(list.links['self'], DVD_TOP_RENTALS_LINK)
def test_movies_upcoming(self): list = rt.Lists() list.movies_upcoming(page_limit=5) self.assertEqual(list.links['self'], MOVIES_UPCOMING_LINK)
def test_movies_opening(self): list = rt.Lists() list.movies_opening(limit=4) self.assertEqual(list.links['self'], MOVIES_OPENING_LINK)
def test_movies_in_theaters(self): list = rt.Lists() list.movies_in_theaters(page_limit=3) self.assertEqual(list.links['self'], MOVIES_IN_THEATERS_LINK)
def test_movies_box_office(self): list = rt.Lists() list.movies_box_office(limit=2) self.assertEqual(list.links['self'], MOVIES_BOX_OFFICE_LINK)
def test_lists(self): list = rt.Lists() list.lists() self.assertEqual(list.links['movies'], LISTS_LINK)