Fix poorly named test mocks
Change-Id: I6e2911e88fc458b39d5024a5714ed8af3f519946
This commit is contained in:
parent
7a42174c4b
commit
f65f82e435
@ -220,12 +220,12 @@ class TestServerCreate(TestServer):
|
||||
network_client = self.app.client_manager.network
|
||||
network_client.find_network = find_network
|
||||
network_client.find_port = find_port
|
||||
netty = mock.Mock()
|
||||
netty.id = 'net1_uuid'
|
||||
porty = mock.Mock()
|
||||
porty.id = 'port1_uuid'
|
||||
find_network.return_value = netty
|
||||
find_port.return_value = porty
|
||||
network_resource = mock.Mock()
|
||||
network_resource.id = 'net1_uuid'
|
||||
port_resource = mock.Mock()
|
||||
port_resource.id = 'port1_uuid'
|
||||
find_network.return_value = network_resource
|
||||
find_port.return_value = port_resource
|
||||
|
||||
# Mock sdk APIs.
|
||||
_network = mock.Mock()
|
||||
|
Loading…
Reference in New Issue
Block a user