'Test the creation of a simple XlsxWriter file with image(s).'

def test_create_file_from_bytesio(self):

    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    image_file_left = open((self.image_dir + 'red.jpg'), 'rb')
    image_data_left = BytesIO(image_file_left.read())
    image_file_left.close()
    image_file_center = open((self.image_dir + 'blue.jpg'), 'rb')
    image_data_center = BytesIO(image_file_center.read())
    image_file_center.close()
    image_file_right = open((self.image_dir + 'yellow.jpg'), 'rb')
    image_data_right = BytesIO(image_file_right.read())
    image_file_right.close()
    worksheet.set_header('&L&G&C&G&R&G', {'image_left': 'red.jpg', 'image_center': 'blue.jpg', 'image_right': 'yellow.jpg', 'image_data_left': image_data_left, 'image_data_center': image_data_center, 'image_data_right': image_data_right})
    workbook.close()
    self.assertExcelEqual()
