in features/0002-keys-generate.py [0:0]
def _test_manifest(manifest):
"""Test that the manifest is actually complete.
:param dict manifest: keys manifest to test
"""
for key, value in manifest["keys"].items():
if "key-id" not in value:
raise ValueError("Invalid key specification: \"{}\" does not define key ID.".format(key))