diff options
| author | Zuul <zuul@review.opendev.org> | 2022-11-10 13:10:21 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-11-10 13:10:21 +0000 |
| commit | 50015b96085c625b1ceaeab880db9271d7e94647 (patch) | |
| tree | bc19668653657c15560561a246c48672deacb6ff /openstackclient/tests/functional/common/test_availability_zone.py | |
| parent | d5b6f5a1835049a2232b4632e7f618175fc3725d (diff) | |
| parent | 38e39b6dc14fd88318541728cb34fd8442d59e8a (diff) | |
| download | python-openstackclient-50015b96085c625b1ceaeab880db9271d7e94647.tar.gz | |
Merge "tests: Convert more functional tests to use 'parse_output'"
Diffstat (limited to 'openstackclient/tests/functional/common/test_availability_zone.py')
| -rw-r--r-- | openstackclient/tests/functional/common/test_availability_zone.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/tests/functional/common/test_availability_zone.py b/openstackclient/tests/functional/common/test_availability_zone.py index 025da95c..f319ffc5 100644 --- a/openstackclient/tests/functional/common/test_availability_zone.py +++ b/openstackclient/tests/functional/common/test_availability_zone.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import json - from openstackclient.tests.functional import base @@ -19,8 +17,10 @@ class AvailabilityZoneTests(base.TestCase): """Functional tests for availability zone. """ def test_availability_zone_list(self): - cmd_output = json.loads(self.openstack( - 'availability zone list -f json')) + cmd_output = self.openstack( + 'availability zone list', + parse_output=True, + ) zones = [x['Zone Name'] for x in cmd_output] self.assertIn( 'internal', |
