summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Boch <aboch@docker.com>2016-09-29 09:46:07 -0700
committerAlessandro Boch <aboch@docker.com>2016-09-29 09:49:58 -0700
commita864059b83f1e4411db4cd247a25679063062709 (patch)
tree7a0a67b1045e4e9bb48d6611e8fca0bf836d0b94
parent52c2cc845346884218f566eeaeee5a5ca3e714ab (diff)
downloaddocker-py-a864059b83f1e4411db4cd247a25679063062709.tar.gz
Adjust test_create_network_with_ipam_config
- to account for API change: IPAM class will now also include a Data class, besides Config. Signed-off-by: Alessandro Boch <aboch@docker.com>
-rw-r--r--tests/integration/network_test.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/integration/network_test.py b/tests/integration/network_test.py
index 6726db4..bacfd81 100644
--- a/tests/integration/network_test.py
+++ b/tests/integration/network_test.py
@@ -69,9 +69,9 @@ class TestNetworks(helpers.BaseTestCase):
assert ipam.pop('Options', None) is None
- assert ipam == {
- 'Driver': 'default',
- 'Config': [{
+ assert ipam['Driver'] == 'default'
+
+ assert ipam['Config'] == [{
'Subnet': "172.28.0.0/16",
'IPRange': "172.28.5.0/24",
'Gateway': "172.28.5.254",
@@ -80,8 +80,7 @@ class TestNetworks(helpers.BaseTestCase):
"b": "172.28.1.6",
"c": "172.28.1.7",
},
- }],
- }
+ }]
@requires_api_version('1.21')
def test_create_network_with_host_driver_fails(self):