Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_all_downloadable_files_has_checksums(self):
for model, data in MODELS.items():
self.assertIn('size', data, msg="Model {}".format(model))
self.assertIn('md5_checksum', data)
self.assertIn('file_extension', data)
for dataset, data in DATASETS.items():
self.assertIn('size', data, msg="Dataset {}".format(dataset))
self.assertIn('md5_checksum', data)
self.assertIn('file_extension', data)