summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/unit/network')
-rw-r--r--openstackclient/tests/unit/network/v2/test_port.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openstackclient/tests/unit/network/v2/test_port.py b/openstackclient/tests/unit/network/v2/test_port.py
index 5f2a1283..c8540ba0 100644
--- a/openstackclient/tests/unit/network/v2/test_port.py
+++ b/openstackclient/tests/unit/network/v2/test_port.py
@@ -1923,6 +1923,7 @@ class TestUnsetPort(TestPort):
'subnet=042eb10a-3a18-4658-ab-cf47c8d03152,ip-address=1.0.0.0',
'--binding-profile', 'Superman',
'--qos-policy',
+ '--host',
self._testport.name,
]
verifylist = [
@@ -1931,6 +1932,7 @@ class TestUnsetPort(TestPort):
'ip-address': '1.0.0.0'}]),
('binding_profile', ['Superman']),
('qos_policy', True),
+ ('host', True)
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -1941,7 +1943,8 @@ class TestUnsetPort(TestPort):
'subnet_id': '042eb10a-3a18-4658-ab-cf47c8d03152',
'ip_address': '0.0.0.1'}],
'binding:profile': {'batman': 'Joker'},
- 'qos_policy_id': None
+ 'qos_policy_id': None,
+ 'binding:host_id': None
}
self.network.update_port.assert_called_once_with(
self._testport, **attrs)