def test_get_decorated_method_with_token(self):

        self.is_valid = True
        test_token = 'token'

        response = self.fetch('/', headers={'Authorization': test_token})

        self.assert_status_code(500, response)
        assert self.get_method.called
Test decorated GET method when there is an auth token
dataset/ETHPy150Open openpermissions/koi/tests/unit/auth/test_auth_decorator.py/TestAsyncWrongDecoratorOrder.test_get_decorated_method_with_token