@patch('koi.auth.logging')
    def test_decorated_method_without_token(self, logging):
        response = self.fetch('/')

        self.assert_status_code(401, response)
        self.assert_json_error(response)
        assert logging.warning.call_count == 1
        assert not self.get_method.called
Test the decorated method when there is not an auth token
dataset/ETHPy150Open openpermissions/koi/tests/unit/auth/test_auth_decorator.py/_AuthenticateBase.test_decorated_method_without_token