'The link from the recent actions list referring to the changeform of the object should be quoted'

def test_recentactions_link(self):

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