'The \'View on site\' button is not displayed if view_on_site is False'

def test_false(self):

    response = self.client.get(reverse('admin:admin_views_state_change', args=(self.s1.pk,)))
    content_type_pk = ContentType.objects.get_for_model(City).pk
    self.assertNotContains(response, reverse('admin:view_on_site', args=(content_type_pk, self.c1.pk)))
