Improve a network testcase
Fix a typo networ to network, and add assertEqual lines. Change-Id: I13c0c775c1d5f7a8f579d387cd9bea1bdd74aebc
This commit is contained in:
parent
e0aa1acbae
commit
65a08d6af6
@ -609,7 +609,7 @@ class TestListNetwork(TestNetwork):
|
|||||||
self.assertEqual(self.columns, columns)
|
self.assertEqual(self.columns, columns)
|
||||||
self.assertEqual(self.data, list(data))
|
self.assertEqual(self.data, list(data))
|
||||||
|
|
||||||
def test_networ_list_project_domain(self):
|
def test_network_list_project_domain(self):
|
||||||
project = identity_fakes_v3.FakeProject.create_one_project()
|
project = identity_fakes_v3.FakeProject.create_one_project()
|
||||||
self.projects_mock.get.return_value = project
|
self.projects_mock.get.return_value = project
|
||||||
arglist = [
|
arglist = [
|
||||||
@ -625,6 +625,8 @@ class TestListNetwork(TestNetwork):
|
|||||||
filters = {'tenant_id': project.id}
|
filters = {'tenant_id': project.id}
|
||||||
|
|
||||||
self.network.networks.assert_called_once_with(**filters)
|
self.network.networks.assert_called_once_with(**filters)
|
||||||
|
self.assertEqual(self.columns, columns)
|
||||||
|
self.assertEqual(self.data, list(data))
|
||||||
|
|
||||||
def test_network_list_share(self):
|
def test_network_list_share(self):
|
||||||
arglist = [
|
arglist = [
|
||||||
|
Loading…
Reference in New Issue
Block a user