

@staticmethod
def create_one_security_group(attrs=None):
    'Create a fake security group.\n\n        :param Dictionary attrs:\n            A dictionary with all attributes\n        :return:\n            A FakeResource object, with id, name, etc.\n        '
    attrs = (attrs or {
        
    })
    security_group_attrs = {
        'id': ('security-group-id-' + uuid.uuid4().hex),
        'name': ('security-group-name-' + uuid.uuid4().hex),
        'description': ('security-group-description-' + uuid.uuid4().hex),
        'tenant_id': ('project-id-' + uuid.uuid4().hex),
        'rules': [],
    }
    security_group_attrs.update(attrs)
    security_group = fakes.FakeResource(info=copy.deepcopy(security_group_attrs), loaded=True)
    return security_group_attrs

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeSecurityGroup.create_one_security_group/VarMisuse@128/246 `security_group`->`security_group_attrs`