def test_check_user_id_(self): assert check_user_id("qingfeng") is not None assert check_user_id("verylonglonglonglonglongusername") is None
def _q_access(self, request): if not check_user_id(self.name): raise TraversalError("not a valid user id")
def _q_access(self, request): if not check_user_id(self.name): raise TraversalError('not a valid user id')