def setUp(self): self.coll_path = "/humgen/projects/serapis_staging/test-baton/test_coll_metadata" self.meta_dict = {'key1': {'val1'}} BatonCollectionAPI.add_metadata(self.coll_path, self.meta_dict) crt_meta = BatonCollectionAPI.get_all_metadata(self.coll_path).to_dict() self.assertTrue('key1' in crt_meta)
def test_add_metadata(self): BatonCollectionAPI.add_metadata(self.coll_path, self.meta_dict) crt_meta_dict = BatonCollectionAPI.get_all_metadata(self.coll_path).to_dict() self.assertTrue('key1' in crt_meta_dict)