

def test_can_select_option(self):
    (option, ctype) = self.create_option()
    story = stories.SelectOption(self)
    story.select_option(option.name)
    story.assert_selection_persists(('%s-%s' % (ctype.pk, option.pk)), option.name)

dataset/ETHPy150Open yourlabs/django-autocomplete-light/test_project/select2_generic_foreign_key/test_functional.py AdminGenericForeignKeyTestCase.test_can_select_option/original