Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def test_set_selected_option__string_children(self):
     select = Select()
     select.append("String Content")
     option = select.create_option("L1")
     select.selected_option = option
Exemplo n.º 6
0
 def test_set_selected_option__string_children(self):
     select = Select()
     select.append("String Content")
     option = select.create_option("L1")
     select.selected_option = option