Use formatter in server.py for "server list" tests.

We should use the formatter in the original code to set the
expected data in each test case.

The same problem exists in other test cases, like "server create".
But data structure in TestServerCreate is different from TestServerList,
so will fix the problem in another patch.

Change-Id: I233f7a91cd4cc1e996941e26ea85490fa3290572
This commit is contained in:
Tang Chen 2015-12-07 22:16:04 +08:00
parent 000b3c6dea
commit 0d7be6fbcb

@ -674,7 +674,7 @@ class TestServerList(TestServer):
s.id,
s.name,
s.status,
u'public=10.20.30.40, 2001:db8::5',
server._format_servers_list_networks(s.networks),
))
def test_server_list_no_option(self):