def test_index_reference(self):
     reference = api.content.create(type='Document', title='foobar2',
                                    container=self.portal)
     context = self._get_object(reference)
     indexer = indexers.image_info(context)
     value = indexer()
     self.assertEquals(value['reference'], IUUID(context))
Exemple #2
0
 def test_index_focal_point(self):
     context = self._get_object()
     value = indexers.image_info(context)()
     self.assertEquals(value['focal_point'], [1, 1])