def test_post_with_anonymous_user(self):
        self.request.method = 'POST'
        self.request.user = AnonymousUser()
        self.request.POST = {
            'display_name': 'Test User',
            'email': 'test-user@example.com'
        }
        response = self.view(self.request)

        self.assertEqual(response.status_code, 302)
        self.assertIn('/admin/account/login/', response['location'])
Test to validate that we cannot connect without client auth.
dataset/ETHPy150Open ExCiteS/geokey/geokey/users/tests/test_views.py/UserProfileTest.test_post_with_anonymous_user--crossover with--dataset/ETHPy150Open datastax/python-driver/tests/integration/long/test_ssl.py/SSLConnectionAuthTests.test_cannot_connect_without_client_auth