diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-04-18 17:55:08 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-04-18 17:55:08 +0000 |
| commit | 3f2ed7d19f53b0950152e4f233797f13627f4986 (patch) | |
| tree | 80a24d00ee5b20b29ac8c0ece38a0e06e6fc7208 /openstackclient | |
| parent | e3a6fc27b0cfc9b82801e13d61c2fad3a09bf6b1 (diff) | |
| parent | cc3a0625291746d90eec371304d410070870dab9 (diff) | |
| download | python-openstackclient-3f2ed7d19f53b0950152e4f233797f13627f4986.tar.gz | |
Merge "Remove methods argument from vloume/v2/fakes.py"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/volume/v2/fakes.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/openstackclient/tests/volume/v2/fakes.py b/openstackclient/tests/volume/v2/fakes.py index 3c238d10..6e631c41 100644 --- a/openstackclient/tests/volume/v2/fakes.py +++ b/openstackclient/tests/volume/v2/fakes.py @@ -361,13 +361,11 @@ class FakeAvailabilityZone(object): """Fake one or more volume availability zones (AZs).""" @staticmethod - def create_one_availability_zone(attrs={}, methods={}): + def create_one_availability_zone(attrs={}): """Create a fake AZ. :param Dictionary attrs: A dictionary with all attributes - :param Dictionary methods: - A dictionary with all methods :return: A FakeResource object with zoneName, zoneState, etc. """ @@ -382,18 +380,15 @@ class FakeAvailabilityZone(object): availability_zone = fakes.FakeResource( info=copy.deepcopy(availability_zone), - methods=methods, loaded=True) return availability_zone @staticmethod - def create_availability_zones(attrs={}, methods={}, count=2): + def create_availability_zones(attrs={}, count=2): """Create multiple fake AZs. :param Dictionary attrs: A dictionary with all attributes - :param Dictionary methods: - A dictionary with all methods :param int count: The number of AZs to fake :return: @@ -402,8 +397,7 @@ class FakeAvailabilityZone(object): availability_zones = [] for i in range(0, count): availability_zone = \ - FakeAvailabilityZone.create_one_availability_zone( - attrs, methods) + FakeAvailabilityZone.create_one_availability_zone(attrs) availability_zones.append(availability_zone) return availability_zones |
