Пример #1
0
 def test_get_movie_with_incorrect_id(self):
     movie_id = 42
     with self.assertRaises(MovieIdError):
         MovieController.get_by_id(movie_id)
Пример #2
0
 def test_get_movie_with_correct_id(self):
     movie_id = 1
     expected = (1, "The Hunger Games: Catching Fire", 7.5)
     actual = MovieController.get_by_id(movie_id)
     self.assertEqual(expected, actual)