Fix a couple of broken shell tests
Pyflakes picked up a couple of duplicated names. Rename the one that is correct and delete the incorrect one. Change-Id: Id4af1269a030be5a725bbbbcf3400341b09fddc3
This commit is contained in:
parent
fba20df12c
commit
020de7cebc
@ -748,17 +748,11 @@ class ShellTest(utils.TestCase):
|
||||
body = {'disassociate_host': None}
|
||||
self.assert_called('POST', '/os-networks/2/action', body)
|
||||
|
||||
def test_network_disassociate(self):
|
||||
def test_network_disassociate_project(self):
|
||||
self.run_command('network-disassociate --project-only 1 2')
|
||||
body = {'disassociate_project': None}
|
||||
self.assert_called('POST', '/os-networks/2/action', body)
|
||||
|
||||
def test_network_create_v4(self):
|
||||
self.run_command('network-create --fixed-range-v4 10.0.1.0/24 \
|
||||
new_network')
|
||||
body = {'cidr': '10.0.1.0/24', 'label': 'new_network'}
|
||||
self.assert_called('POST', '/os-networks', body)
|
||||
|
||||
def test_network_create_v4(self):
|
||||
self.run_command('network-create --fixed-range-v4 10.0.1.0/24 \
|
||||
--dns1 10.0.1.254 new_network')
|
||||
|
Loading…
x
Reference in New Issue
Block a user