def METHOD_NAME(self):
    # given
    pyplot.plot([1, 2, 3, 4])
    pyplot.ylabel("some interesting numbers")
    figure = pyplot.gcf()
    figure.canvas.draw()
    # expect
    self.assertEqual(get_image_content(figure), _get_figure_as_image(figure))