def test_has_proxy_user_token_empty(self):
        """
        has_proxy_user_token unittest with no valid headers.
        """
        # setup
        m_request = mock.MagicMock(spec=HttpRequest)
        m_request.META = {}

        # test
        self.assertFalse(has_proxy_user_token(m_request))
    def test_has_proxy_user_token(self):
        """
        has_proxy_user_token unittest with valid headers.
        """
        # setup
        m_request = mock.MagicMock(spec=HttpRequest)
        m_request.META = {
            EZSECURITY_HEADER_USER_INFO: '',
            EZSECURITY_HEADER_SIGNATURE: ''
        }

        # test
        self.assertTrue(has_proxy_user_token(m_request))