'Testing the bytesio loading code path'

def test_g4_hopper_bytesio(self):

    from io import BytesIO
    test_file = 'Tests/images/hopper_g4.tif'
    s = BytesIO()
    with open(test_file, 'rb') as f:
        s.write(f.read())
        s.seek(0)
    im = Image.open(s)
    self.assertEqual(im.size, (128, 128))
    self._assert_noerr(im)
