Example #1
0
 def test_get_by_id(self):
     film = Film.get_by_id(868)
     self.assertIsInstance(film, Film)
     self.assertEqual(film.title, "Być jak John Malkovich")
     self.assertEqual(film.url, "http://www.filmweb.pl/film/By%C4%87+jak+John+Malkovich-1999-868")
     self.assertEqual(film.year, 1999)
     self.assertEqual(film.id_, 868)
Example #2
0
 def test_get_by_id_not_found(self):
     film = Film.get_by_id(67825)
     self.assertIsNone(film)