'Retrieving the object using urlencoded form of primary key should work'

def test_get_change_view(self):

    response = self.client.get(('/test_admin/admin/admin_views/modelwithstringprimarykey/%s/' % quote(self.pk)))
    self.assertContains(response, escape(self.pk))
    self.assertEqual(response.status_code, 200)
