Trivial: Rename FakehypervisorStats to FakeHypervisorStats
Change-Id: I138b1b8a3327947b8cd032d8d0c32d98548ce2ad
This commit is contained in:
parent
97492c168f
commit
c3f6ee9570
@ -280,7 +280,7 @@ class FakeHypervisor(object):
|
|||||||
return hypervisors
|
return hypervisors
|
||||||
|
|
||||||
|
|
||||||
class FakehypervisorStats(object):
|
class FakeHypervisorStats(object):
|
||||||
"""Fake one or more hypervisor stats."""
|
"""Fake one or more hypervisor stats."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -333,7 +333,7 @@ class FakehypervisorStats(object):
|
|||||||
hypervisors = []
|
hypervisors = []
|
||||||
for i in range(0, count):
|
for i in range(0, count):
|
||||||
hypervisors.append(
|
hypervisors.append(
|
||||||
FakehypervisorStats.create_one_hypervisor_stats(attrs))
|
FakeHypervisorStats.create_one_hypervisor_stats(attrs))
|
||||||
|
|
||||||
return hypervisors
|
return hypervisors
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class TestHypervisorStatsShow(TestHypervisorStats):
|
|||||||
super(TestHypervisorStatsShow, self).setUp()
|
super(TestHypervisorStatsShow, self).setUp()
|
||||||
|
|
||||||
self.hypervisor_stats = \
|
self.hypervisor_stats = \
|
||||||
compute_fakes.FakehypervisorStats.create_one_hypervisor_stats()
|
compute_fakes.FakeHypervisorStats.create_one_hypervisor_stats()
|
||||||
|
|
||||||
self.hypervisors_mock.statistics.return_value =\
|
self.hypervisors_mock.statistics.return_value =\
|
||||||
self.hypervisor_stats
|
self.hypervisor_stats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user