'Multiple calls of get_image_dimensions() should return the same size.'

@unittest.skipUnless(Image, 'Pillow    not    installed')
def test_multiple_calls(self):

    img_path = os.path.join(os.path.dirname(__file__), 'test.png')
    with open(img_path, 'rb') as fh:
        image = images.ImageFile(fh)
        image_pil = Image.open(fh)
        size_1 = images.get_image_dimensions(image)
        size_2 = images.get_image_dimensions(image)
    self.assertEqual(image_pil.size, size_1)
    self.assertEqual(size_1, size_2)
