def test_set_selected_option__deselect_others(self): select = Select() option1 = select.create_option("L1", selected=True) option2 = select.create_option("L2") select.selected_option = option2 assert_false(option1.selected) assert_is(option2, select.selected_option)
def test_set_selected_option__deselect_others(self): select = Select() option1 = select.create_option("L1", selected=True) option2 = select.create_option("L2") select.selected_option = option2 assert_false(option1.selected) assert_is(option2, select.selected_option)
def test_set_selected_option(self): select = Select() select.create_option("L1") option = select.create_option("L2") select.create_option("L3") select.selected_option = option assert_true(option.selected) assert_is(option, select.selected_option)
def test_set_selected_option(self): select = Select() select.create_option("L1") option = select.create_option("L2") select.create_option("L3") select.selected_option = option assert_true(option.selected) assert_is(option, select.selected_option)
def test_set_selected_option__string_children(self): select = Select() select.append("String Content") option = select.create_option("L1") select.selected_option = option
def test_set_selected_option__string_children(self): select = Select() select.append("String Content") option = select.create_option("L1") select.selected_option = option