'Checking to see that the saved image is the same as what we wrote'

def test_g4_write(self):

    test_file = 'Tests/images/hopper_g4_500.tif'
    orig = Image.open(test_file)
    out = self.tempfile('temp.tif')
    rot = orig.transpose(Image.ROTATE_90)
    self.assertEqual(rot.size, (500, 500))
    rot.save(out)
    reread = Image.open(out)
    self.assertEqual(reread.size, (500, 500))
    self._assert_noerr(reread)
    self.assert_image_equal(reread, rot)
    self.assertEqual(reread.info['compression'], 'group4')
    self.assertEqual(reread.info['compression'], orig.info['compression'])
    self.assertNotEqual(orig.tobytes(), reread.tobytes())
