def test_goodwillhunting_wrongyear_doesnotexist(self): res = myapifilms.get_metadata({"path":"/Good Will Hunting (1990)"}) self.assertEqual(None, res)
def test_startrek(self): #tv show res = myapifilms.get_metadata({"path":"/Star Trek: The Next Generation","type":"tv series"}) self.assertNotEqual(None, res) self.assertEqual(1987, res['year'])
def test_goodwillhunting(self): res = myapifilms.get_metadata({"path":"/Good Will Hunting (1997)"}) self.assertNotEqual(None, res) self.assertEqual(1997, res['year']) self.assertEqual(8.3, res['rating'])