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)
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)