def METHOD_NAME(self):
    pixel_formats = ("bgra32", "rgba32")
    def check(image):
        # Default is expected to be a totally white image.
        # Therefore we check if the whole image is white.
        if np.sum(image == [255, 255, 255, 255]) == (300 * 300 * 4):
            self.fail("The image looks empty, no pixels were drawn")
    buffer = np.empty((300, 300, 4), dtype=np.uint8)
    for pix_format in pixel_formats:
        gc = MarkerRenderer(buffer, pix_format=pix_format)
        self.exercise(gc, buffer, check)