def METHOD_NAME(self, part_settings, image2, qtbot):
    prop = ChannelProperty(part_settings, "test")
    view = ResultImageView(part_settings, prop, "test")
    qtbot.add_widget(prop)
    qtbot.add_widget(view)
    part_settings.image = image2
    view.show()
    view.resize(500, 500)
    assert view.btn_layout2.count() == 2
    view.resize(1000, 500)
    assert view.btn_layout2.count() == 0
    view.resize(500, 500)
    assert view.btn_layout2.count() == 2
    view.hide()