def test_csrf_token_in_404(self):
        # See ticket #14565
        for url in self.non_existing_urls:
            response = self.client.get(url)
            csrf_token = response.context['csrf_token']
            self.assertNotEqual(str(csrf_token), 'NOTPROVIDED')
            self.assertNotEqual(str(csrf_token), '')
The 404 page should have the csrf_token available in the context
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/view_tests/tests/test_defaults.py/DefaultsTests.test_csrf_token_in_404