Пример #1
0
 def test_faceMemoisation(self):
     """
     Check return time of memoisation and faces are the same
     """
     wrapper = VideoWrapper(self.skyfall, 350, 380)
     self.assertIsNone(wrapper.faces)
     faces = wrapper.getFaces()
     self.assertIsNotNone(wrapper.faces)
     wrapper.video = None
     self.assertEqual(faces, wrapper.getFaces())
Пример #2
0
 def test_faceReturn(self):
     """
     Check at least a certain amount of faces are returned
     """
     wrapper = VideoWrapper(self.skyfall, 360, 380)
     self.assertTrue(len(wrapper.getFaces()) >= 15 and len(wrapper.getFaces()) <= 20)