Skip to content

Commit 0d7be6f

Browse files
committed
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
1 parent 000b3c6 commit 0d7be6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/compute/v2/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def setUp(self):
674674
s.id,
675675
s.name,
676676
s.status,
677-
u'public=10.20.30.40, 2001:db8::5',
677+
server._format_servers_list_networks(s.networks),
678678
))
679679

680680
def test_server_list_no_option(self):

0 commit comments

Comments
 (0)