Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def test_dvds_upcoming(self):
     list = rt.Lists()
     list.dvds_upcoming(page_limit=5)
     self.assertEqual(list.links['self'], DVD_UPCOMING_LINK)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 def test_dvds_top_rentals(self):
     list = rt.Lists()
     list.dvds_top_rentals(limit=2)
     self.assertEqual(list.links['self'], DVD_TOP_RENTALS_LINK)
Esempio n. 7
0
 def test_movies_upcoming(self):
     list = rt.Lists()
     list.movies_upcoming(page_limit=5)
     self.assertEqual(list.links['self'], MOVIES_UPCOMING_LINK)
Esempio n. 8
0
 def test_movies_opening(self):
     list = rt.Lists()
     list.movies_opening(limit=4)
     self.assertEqual(list.links['self'], MOVIES_OPENING_LINK)
Esempio n. 9
0
 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)
Esempio n. 10
0
 def test_movies_box_office(self):
     list = rt.Lists()
     list.movies_box_office(limit=2)
     self.assertEqual(list.links['self'], MOVIES_BOX_OFFICE_LINK)
Esempio n. 11
0
 def test_lists(self):
     list = rt.Lists()
     list.lists()
     self.assertEqual(list.links['movies'], LISTS_LINK)