EmptyClient-check.py 487 B

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