Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit ab40add

Browse files
author
Tang Chen
committed
Fix wrong return value in TestDeleteFloatingIPNetwork
delete_ip() should return None, not the fake floating IP. Change-Id: I1476189a09a94c76c90f9a3986e3ae57dc66d796
1 parent 02e5b6f commit ab40add

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/network/v2/test_floating_ip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TestDeleteFloatingIPNetwork(TestFloatingIPNetwork):
3737
def setUp(self):
3838
super(TestDeleteFloatingIPNetwork, self).setUp()
3939

40-
self.network.delete_ip = mock.Mock(return_value=self.floating_ip)
40+
self.network.delete_ip = mock.Mock(return_value=None)
4141
self.network.find_ip = mock.Mock(return_value=self.floating_ip)
4242

4343
# Get the command object to test

0 commit comments

Comments
 (0)