diff options
| author | Kyrylo Romanenko <kromanenko@mirantis.com> | 2016-07-05 12:16:18 +0300 |
|---|---|---|
| committer | Steve Martinelli <s.martinelli@gmail.com> | 2016-07-05 15:39:03 +0000 |
| commit | 259b4a14628b5eae5f9154a052381145e7e7ba1e (patch) | |
| tree | f3449aa2857717436e1b4128a6e713a60f566783 /functional/tests/common | |
| parent | 44d4188149faa53d377adf6af6a64a1f6403ce43 (diff) | |
| download | python-openstackclient-259b4a14628b5eae5f9154a052381145e7e7ba1e.tar.gz | |
Deduplicate get_opts methods
One get_opts method can work instead of
get_list_opts and get_show_opts both.
Remove mutable default value.
Change-Id: I9c5683d416f0f3ed4989abab6f152b0341e30a4f
Diffstat (limited to 'functional/tests/common')
| -rw-r--r-- | functional/tests/common/test_availability_zone.py | 2 | ||||
| -rw-r--r-- | functional/tests/common/test_quota.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/functional/tests/common/test_availability_zone.py b/functional/tests/common/test_availability_zone.py index 9296db23..da8aad7d 100644 --- a/functional/tests/common/test_availability_zone.py +++ b/functional/tests/common/test_availability_zone.py @@ -20,6 +20,6 @@ class AvailabilityZoneTests(test.TestCase): DEFAULT_AZ_NAME = 'nova' def test_availability_zone_list(self): - opts = self.get_list_opts(self.HEADERS) + opts = self.get_opts(self.HEADERS) raw_output = self.openstack('availability zone list' + opts) self.assertIn(self.DEFAULT_AZ_NAME, raw_output) diff --git a/functional/tests/common/test_quota.py b/functional/tests/common/test_quota.py index 0bc93db2..0316de25 100644 --- a/functional/tests/common/test_quota.py +++ b/functional/tests/common/test_quota.py @@ -27,7 +27,7 @@ class QuotaTests(test.TestCase): def test_quota_set(self): self.openstack('quota set --instances 11 --volumes 11 --networks 11 ' + self.PROJECT_NAME) - opts = self.get_show_opts(self.EXPECTED_FIELDS) + opts = self.get_opts(self.EXPECTED_FIELDS) raw_output = self.openstack('quota show ' + self.PROJECT_NAME + opts) self.assertEqual("11\n11\n11\n", raw_output) |
