summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-04-05 19:43:33 +0800
committerTang Chen <chen.tang@easystack.cn>2016-04-05 19:43:33 +0800
commitc3f6ee95709d1ccb7de7818e4403645a1e9a5662 (patch)
treefc91fbf7ac12b462c5536995748c864b2bc3a683 /openstackclient
parent97492c168f395eb80009162eb2e242dde23e0ba5 (diff)
downloadpython-openstackclient-c3f6ee95709d1ccb7de7818e4403645a1e9a5662.tar.gz
Trivial: Rename FakehypervisorStats to FakeHypervisorStats
Change-Id: I138b1b8a3327947b8cd032d8d0c32d98548ce2ad
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/tests/compute/v2/fakes.py4
-rw-r--r--openstackclient/tests/compute/v2/test_hypervisor_stats.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py
index 860963eb..6c67c470 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -280,7 +280,7 @@ class FakeHypervisor(object):
return hypervisors
-class FakehypervisorStats(object):
+class FakeHypervisorStats(object):
"""Fake one or more hypervisor stats."""
@staticmethod
@@ -333,7 +333,7 @@ class FakehypervisorStats(object):
hypervisors = []
for i in range(0, count):
hypervisors.append(
- FakehypervisorStats.create_one_hypervisor_stats(attrs))
+ FakeHypervisorStats.create_one_hypervisor_stats(attrs))
return hypervisors
diff --git a/openstackclient/tests/compute/v2/test_hypervisor_stats.py b/openstackclient/tests/compute/v2/test_hypervisor_stats.py
index 39e303a8..ca5ce29b 100644
--- a/openstackclient/tests/compute/v2/test_hypervisor_stats.py
+++ b/openstackclient/tests/compute/v2/test_hypervisor_stats.py
@@ -33,7 +33,7 @@ class TestHypervisorStatsShow(TestHypervisorStats):
super(TestHypervisorStatsShow, self).setUp()
self.hypervisor_stats = \
- compute_fakes.FakehypervisorStats.create_one_hypervisor_stats()
+ compute_fakes.FakeHypervisorStats.create_one_hypervisor_stats()
self.hypervisors_mock.statistics.return_value =\
self.hypervisor_stats