예제 #1
0
	def test_goodwillhunting_wrongyear_doesnotexist(self):
		res = myapifilms.get_metadata({"path":"/Good Will Hunting (1990)"})
		self.assertEqual(None, res)
예제 #2
0
	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'])
예제 #3
0
	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'])