Ejemplo n.º 1
0
 def test_ImageDict_provides_values_of_each_key_value_pair(self):
     d = ImageDict()
     obj1 = cv2.imread(path.join(_this_path, 'data', 'object.png'))
     obj2 = cv2.imread(path.join(_this_path, 'data', 'different_object.png'))
     d[obj1] = 1
     d[obj2] = 2
     values_specification = (1, 2)
     values_by_itervalues = d.itervalues()
     values_by_values = d.values()
     self.assertItemsEqual(list(values_by_itervalues), values_specification)
     self.assertItemsEqual(values_by_values, values_specification)