

@staticmethod
def create_one_hypervisor_stats(attrs=None):
    'Create a fake hypervisor stats.\n\n        :param Dictionary attrs:\n            A dictionary with all attributes\n        :return:\n            A FakeResource object, with id, hypervisor_hostname, and so on\n        '
    attrs = (attrs or {
        
    })
    stats_info = {
        'count': 2,
        'current_workload': 0,
        'disk_available_least': 50,
        'free_disk_gb': 100,
        'free_ram_mb': 23000,
        'local_gb': 100,
        'local_gb_used': 0,
        'memory_mb': 23800,
        'memory_mb_used': 1400,
        'running_vms': 3,
        'vcpus': 8,
        'vcpus_used': 3,
    }
    stats_info.update(attrs)
    hypervisor_stats_method = {
        'to_dict': attrs,
    }
    hypervisor_stats = fakes.FakeResource(info=copy.deepcopy(stats_info), methods=copy.deepcopy(hypervisor_stats_method), loaded=True)
    return hypervisor_stats

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeHypervisorStats.create_one_hypervisor_stats/VarMisuse@107/251 `stats_info`->`attrs`