

@staticmethod
def create_one_server_group(attrs=None):
    'Create a fake server group\n\n        :param Dictionary attrs:\n            A dictionary with all attributes\n        :return:\n            A FakeResource object, with id and other attributes\n        '
    if (attrs is None):
        attrs = {
            
        }
    server_group_info = {
        'id': ('server-group-id-' + uuid.uuid4().hex),
        'members': [],
        'metadata': {
            
        },
        'name': ('server-group-name-' + uuid.uuid4().hex),
        'policies': [],
        'project_id': ('server-group-project-id-' + uuid.uuid4().hex),
        'user_id': ('server-group-user-id-' + uuid.uuid4().hex),
    }
    server_group_info.update(attrs)
    server_group = fakes.FakeResource(info=copy.deepcopy(server_group_info), loaded=True)
    return attrs

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeServerGroup.create_one_server_group/VarMisuse@148/275 `server_group`->`attrs`