'Link to the changeform of the object in changelist should use reverse() and be quoted -- #18072'

def test_changelist_to_changeform_link(self):

    prefix = u'/test_admin/admin/admin_views/modelwithstringprimarykey/'
    response = self.client.get(prefix)
    pk_final_url = escape(iri_to_uri(urlquote(quote(self.pk))))
    should_contain = (u'<th><a    href="%s%s/">%s</a></th>' % (prefix, pk_final_url, escape(self.pk)))
    self.assertContains(response, should_contain)
