'The link from the delete confirmation page referring back to the changeform of the object should be quoted'

def test_deleteconfirmation_link(self):

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