1from check_index import *
2
3def check_reply(r):
4    assert is_dict(r)
5    assert sorted(r.keys()) == ["client-foo"]
6    check_reply_client_foo(r["client-foo"])
7
8def check_reply_client_foo(r):
9    assert is_dict(r)
10    assert sorted(r.keys()) == []
11
12def check_objects(o):
13    assert is_list(o)
14    assert len(o) == 0
15
16assert is_dict(index)
17assert sorted(index.keys()) == ["cmake", "objects", "reply"]
18check_cmake(index["cmake"])
19check_reply(index["reply"])
20check_objects(index["objects"])
21