'When ModelAdmin.has_add_permission() returns False, the object-tools
block is still shown.'

def test_object_tools_displayed_no_add_permission(self):

    superuser = self._create_superuser('superuser')
    m = EventAdmin(Event, custom_site)
    request = self._mocked_authenticated_request('/event/', superuser)
    self.assertFalse(m.has_add_permission(request))
    response = m.changelist_view(request)
    self.assertIn('<ul    class="object-tools">', response.rendered_content)
    self.assertNotIn('Add    ', response.rendered_content)
