def METHOD_NAME(app):
    "The image can be cleared"
    widget = toga.ImageView(image="resources/toga.png")
    assert widget.image is not None
    widget.image = None
    assert_action_performed_with(widget, "set image", image=None)
    assert_action_performed(widget, "refresh")
    assert widget.image is None