def getCPUMap(self):
        active_cpus = self.host_info.cpus
        total_cpus = active_cpus + len(self.host_info.disabled_cpus_list)
        cpu_map = [True if cpu_num not in self.host_info.disabled_cpus_list
                   else False for cpu_num in range(total_cpus)]
        return (total_cpus, cpu_map, active_cpus)
Tests that aggregators can fold metrics properly.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/libvirt/fakelibvirt.py/Connection.getCPUMap--crossover with--dataset/ETHPy150Open kiip/statsite/tests/unit/test_aggregator.py/TestAggregator.test_fold_metrics_works