summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/Empty-check.py
blob: 75bf096d0d9b7efc9426c6d6f193703590ede2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from check_index import *

def check_reply(r):
    assert is_dict(r)
    assert sorted(r.keys()) == []

def check_objects(o):
    assert is_list(o)
    assert len(o) == 0

assert is_dict(index)
assert sorted(index.keys()) == ["cmake", "objects", "reply"]
check_cmake(index["cmake"])
check_reply(index["reply"])
check_objects(index["objects"])