def test_admin_change_link_update(self):
    change_link = self.selenium.find_element_by_id(('change_id_%s' % self.autocomplete_name))
    href = change_link.get_attribute('href')
    assert href.endswith(('%s?_to_field=id&_popup=1' % reverse('admin:basic_fkmodel_change', args=(4,))))
def test_admin_change_link_update(self):
    change_link = self.selenium.find_element_by_id(('change_id_%s' % self.autocomplete_name))
    href = change_link.get_attribute('href')
    assert href.endswith(('%s?_to_field=id&_popup=1' % reverse('admin:basic_fkmodel_change', args=(4,))))