'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(u'/test_admin/admin/')
    link = reverse(u'admin:admin_views_modelwithstringprimarykey_change', args=(quote(self.pk),))
    should_contain = (u'<a    href="%s">%s</a>' % (link, escape(self.pk)))
    self.assertContains(response, should_contain)
