Beispiel #1
0
 def test_update_metadata(self):
     BatonCollectionAPI.update_metadata(self.coll_path, 'key1', {'val2'})
     crt_meta = BatonCollectionAPI.get_all_metadata(self.coll_path).to_dict()
     self.assertTrue('key1' in crt_meta)
     self.assertSetEqual(crt_meta['key1'], {'val2'})
Beispiel #2
0
 def test_rm_metadata(self):
     BatonCollectionAPI.remove_metadata(self.coll_path, self.meta_dict)
     new_meta = BatonCollectionAPI.get_all_metadata(self.coll_path).to_dict()
     self.assertFalse('key1' in new_meta)
Beispiel #3
0
 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)
Beispiel #4
0
 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)