def test_process_exif_data(self):
        image = self.get_exif_image()
        image.image = File(open(os.path.join(self.path, 'exif.jpg')))
        image.save()
        self.assertFalse(image.exif)

        image.process_exif_data()

        self.assertTrue(image.exif)

        exif_data = image.exif
        self.assertEqual(exif_data['ExifImageWidth'], 375)
        self.assertEqual(exif_data['ExifImageHeight'], 500)

        self.assertEqual(
            exif_data['LensModel'], u'iPhone 5s back camera 4.15mm f/2.2')
        self.assertEqual(exif_data['Model'], 'iPhone 5s')
Test grabbing exif data from an image
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_process_exif_data