diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-05-07 16:15:53 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-05-11 10:08:47 +0800 |
| commit | aa5ff67e3fa2b9497218e9bdd4ac3fdf432e007c (patch) | |
| tree | bdb042bb60a8d7cfa2c11fc22d13a91d53078ef6 /openstackclient/tests/network/v2/fakes.py | |
| parent | 4cb5e0bc7959694db70d11c6be8589f1c20d787c (diff) | |
| download | python-openstackclient-aa5ff67e3fa2b9497218e9bdd4ac3fdf432e007c.tar.gz | |
Implement "address scope list" command
This patch add a command that supports
listing address scopes
Change-Id: Id14757011560cacf28011ba51841a8e23b824f33
Partial-Bug: #1566269
Diffstat (limited to 'openstackclient/tests/network/v2/fakes.py')
| -rw-r--r-- | openstackclient/tests/network/v2/fakes.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openstackclient/tests/network/v2/fakes.py b/openstackclient/tests/network/v2/fakes.py index 5fd7ea3b..413ec7d2 100644 --- a/openstackclient/tests/network/v2/fakes.py +++ b/openstackclient/tests/network/v2/fakes.py @@ -107,6 +107,24 @@ class FakeAddressScope(object): return address_scope + @staticmethod + def create_address_scopes(attrs=None, count=2): + """Create multiple fake address scopes. + + :param Dictionary attrs: + A dictionary with all attributes + :param int count: + The number of address scopes to fake + :return: + A list of FakeResource objects faking the address scopes + """ + address_scopes = [] + for i in range(0, count): + address_scopes.append( + FakeAddressScope.create_one_address_scope(attrs)) + + return address_scopes + class FakeAvailabilityZone(object): """Fake one or more network availability zones (AZs).""" |
