normalizing test output list order, independant from directory traversal
@@ -19,6 +19,8 @@ def setup_module(module):
def teardown_module(module):
print("teardown_module: %s" % module.__name__)
+def md_name(md):
+ return md['name']
class TestStore:
@@ -143,6 +145,7 @@ class TestStore:
jout = TestEnv.a2md( [ "store", "list" ] )['jout']
assert len(jout['output']) == len(dnslist)
dnslist.reverse()
+ sorted(jout['output'], key=md_name)
for i in range (0, len(jout['output'])):
TestEnv.check_json_contains( jout['output'][i],
{
