'The link from the changelist referring to the changeform of the object should be quoted'

def test_changelist_to_changeform_link(self):

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