def METHOD_NAME(self):
    # given
    filename = "{}/image.png".format(self.TEST_DIR)
    image_array = numpy.random.rand(200, 300, 3)
    scaled_array = image_array * 255
    expected_image = Image.fromarray(scaled_array.astype(numpy.uint8))
    expected_image.save(filename)
    # expect
    self.assertEqual(get_image_content(filename), _get_pil_image_data(expected_image))