'Ensured that the \'show_delete\' context variable in the admin\'s change
view actually controls the display of the delete button.
Refs #10057.'

def test_change_view_with_show_delete_extra_context(self):

    instance = UndeletableObject.objects.create(name=u'foo')
    response = self.client.get((u'/test_admin/%s/admin_views/undeletableobject/%d/' % (self.urlbit, instance.pk)))
    self.assertNotContains(response, u'deletelink')
