示例#1
0
	def test_dynomutt(self):
		res = omdbapi.get_metadata({"path":"/Dynomutt Dog Wonder"})
		self.assertNotEqual(None, res)
		res['actors'] = sorted(res['actors'])
		res['genres'] = sorted(res['genres'])
		self.assertTrue(len(res['actors']) > 1)
		self.assertEqual(1, len(res['directors']))
		self.assertEqual(2, len(res['genres']))
		self.assertTrue('Frank Welker' in res['actors'])
		self.assertTrue('Gary Owens' in res['actors'])
		self.assertTrue('Joe Ruby' in res['writers'])
		self.assertTrue('Animation' in res['genres'])
示例#2
0
	def test_startrek(self):
		res = omdbapi.get_metadata({"path":"/Star Trek (1966)"})
		self.assertNotEqual(None, res)
		self.assertEqual(1966, res['year'])