Improve a network testcase

Fix a typo networ to network, and add assertEqual lines.

Change-Id: I13c0c775c1d5f7a8f579d387cd9bea1bdd74aebc
This commit is contained in:
Yan Xing'an 2016-10-20 21:56:00 -07:00
parent e0aa1acbae
commit 65a08d6af6

View File

@ -609,7 +609,7 @@ class TestListNetwork(TestNetwork):
self.assertEqual(self.columns, columns)
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()
self.projects_mock.get.return_value = project
arglist = [
@ -625,6 +625,8 @@ class TestListNetwork(TestNetwork):
filters = {'tenant_id': project.id}
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):
arglist = [