示例#1
0
 def __init__(self, manager, user_state={}, project_state={}):
     self.manager = manager
     if 'name' not in user_state:
         user_state['name'] = 'test1'
     if 'name' not in project_state:
         project_state['name'] = 'testproj'
     if 'manager_user' not in project_state:
         project_state['manager_user'] = '******'
     self.user = manager.create_user(**user_state)
     self.project = manager.create_project(**project_state)
示例#2
0
 def __init__(self, manager, user_state={}, project_state={}):
     self.manager = manager
     if 'name' not in user_state:
         user_state['name'] = 'test1'
     if 'name' not in project_state:
         project_state['name'] = 'testproj'
     if 'manager_user' not in project_state:
         project_state['manager_user'] = '******'
     self.user = manager.create_user(**user_state)
     self.project = manager.create_project(**project_state)
示例#3
0
 def __init__(self, manager, **user_state):
     if 'name' not in user_state:
         user_state['name'] = 'test1'
     self.manager = manager
     self.user = manager.create_user(**user_state)
示例#4
0
文件: test_auth.py 项目: lovocas/nova
 def __init__(self, manager, **user_state):
     if 'name' not in user_state:
         user_state['name'] = 'test1'
     self.manager = manager
     self.user = manager.create_user(**user_state)