summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network
diff options
context:
space:
mode:
authorqtang <qtang@vmware.com>2016-07-13 17:28:45 +0800
committerqtang <qtang@vmware.com>2016-07-19 16:35:36 +0800
commit34435d9ca2e35ff02651a5fe715fc36694ecb8b1 (patch)
treeac2f49917b701cf667f4283b7d74fe3dc32041a7 /openstackclient/tests/network
parent60639d76a742852e18f9e2889c480be95596c268 (diff)
downloadpython-openstackclient-34435d9ca2e35ff02651a5fe715fc36694ecb8b1.tar.gz
Exchange the check order for the dhcp and no-dhcp
The dhcp is setting with True by default and progress always jump into the first if check. So the no-dhcp option always ignored there. Check the no-dhcp option first and then the dhcp option value to avoid this. Change-Id: Ide640e2cab3936d419ca62105304ff5d4a8a2074 Closes-Bug: #1602588
Diffstat (limited to 'openstackclient/tests/network')
-rw-r--r--openstackclient/tests/network/v2/test_subnet.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/openstackclient/tests/network/v2/test_subnet.py b/openstackclient/tests/network/v2/test_subnet.py
index 46af44fb..e24b49e8 100644
--- a/openstackclient/tests/network/v2/test_subnet.py
+++ b/openstackclient/tests/network/v2/test_subnet.py
@@ -236,7 +236,6 @@ class TestCreateSubnet(TestSubnet):
self.network.create_subnet.assert_called_once_with(**{
'cidr': self._subnet.cidr,
- 'enable_dhcp': self._subnet.enable_dhcp,
'ip_version': self._subnet.ip_version,
'name': self._subnet.name,
'network_id': self._subnet.network_id,
@@ -410,7 +409,6 @@ class TestCreateSubnet(TestSubnet):
self.network.create_subnet.assert_called_once_with(**{
'cidr': self._subnet.cidr,
- 'enable_dhcp': self._subnet.enable_dhcp,
'ip_version': self._subnet.ip_version,
'name': self._subnet.name,
'network_id': self._subnet.network_id,