diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-04-15 16:10:09 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-04-15 16:10:09 +0800 |
| commit | df3ee61be37fc4e841b7c20c4847d50cb1fc23fe (patch) | |
| tree | 2364c396070704b4b171103d39734842dd3114e6 /openstackclient/tests/compute | |
| parent | 52a12e743ea1047b6c34cd66dcb60cd61638ce1f (diff) | |
| download | python-openstackclient-df3ee61be37fc4e841b7c20c4847d50cb1fc23fe.tar.gz | |
Remove methods argument from FakeHypervisorStats
methods argument is not necessary in FakeHypervisorStats class.
Remove it.
Change-Id: I288f71b412beb3e583e957a9fd99210bc6f3f543
Diffstat (limited to 'openstackclient/tests/compute')
| -rw-r--r-- | openstackclient/tests/compute/v2/fakes.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py index 1cca2787..7f39bad0 100644 --- a/openstackclient/tests/compute/v2/fakes.py +++ b/openstackclient/tests/compute/v2/fakes.py @@ -284,7 +284,7 @@ class FakeHypervisorStats(object): """Fake one or more hypervisor stats.""" @staticmethod - def create_one_hypervisor_stats(attrs={}, methods={}): + def create_one_hypervisor_stats(attrs={}): """Create a fake hypervisor stats. :param Dictionary attrs: @@ -311,7 +311,6 @@ class FakeHypervisorStats(object): # Set default method. hypervisor_stats_method = {'to_dict': stats_info} - hypervisor_stats_method.update(methods) hypervisor_stats = fakes.FakeResource( info=copy.deepcopy(stats_info), |
