def METHOD_NAME(self):
    cpu_sample = {'user': 1.0, 'sys': 2.0}
    first_sample = fake.HostSample(1.0, {0: cpu_sample, 1: cpu_sample})
    # CPU one suddenly came online and the second sample is still missing
    last_sample = fake.HostSample(2.0, {0: cpu_sample})
    with MonkeyPatchScope([(numa, 'topology',
                            self._fakeNumaTopology)]):
        result = hoststats._get_cpu_core_stats(first_sample, last_sample)
        self.assertEqual(len(result), 1)
        self.assertEqual(result['0'], self._core_zero_stats)