

@skip_if_null
def test_visible_when_layout():
    with store_exceptions_on_all_threads():
        dialog = VisibleWhenProblem()
        ui = dialog.edit_traits()
        dialog.which = 'two'
        dialog.which = 'one'
        size = get_dialog_size(ui.control)
        nose.tools.assert_less(size[0], (_TEXT_WIDTH + 100))
        nose.tools.assert_less(size[1], (_TEXT_HEIGHT + 150))

dataset/ETHPy150Open enthought/traitsui/traitsui/tests/test_visible_when_layout.py test_visible_when_layout/original