def __init__(self, manager, user_state=None, project_state=None):
        if not user_state:
            user_state = {}
        if not project_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'] = 'test1'
        self.user = manager.create_user(**user_state)
        self.project = manager.create_project(**project_state)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_auth.py/user_and_project_generator.__init__/original