'Can we write a RGB mode file to webp without error.
Does it have the bits we expect?'

def test_write_rgb(self):

    temp_file = self.tempfile('temp.webp')
    hopper('RGB').save(temp_file)
    image = Image.open(temp_file)
    image.load()
    self.assertEqual(image.mode, 'RGB')
    self.assertEqual(image.size, (128, 128))
    self.assertEqual(image.format, 'WEBP')
    image.load()
    image.getdata()
    target = hopper('RGB')
    self.assert_image_similar(image, target, 12)
