def test_setting_options_from_list_tuples(self):
     d = Dropdown()
     assert d.options == ()
     d.options = [('One', 1), ('Two', 2), ('Three', 3)]
     assert d.get_state('_options_labels') == {'_options_labels': ('One', 'Two', 'Three')}
     d.value = 2
     assert d.get_state('index') == {'index': 1}
 def test_setting_options_from_list(self):
     d = Dropdown()
     assert d.options == ()
     d.options = ['One', 'Two', 'Three']
     assert d.get_state('_options_labels') == {'_options_labels': ('One', 'Two', 'Three')}