Пример #1
0
 def setUp(self):
     self.fpath = "/humgen/projects/serapis_staging/test-baton/test_metadata_add_rm.txt"
     self.meta_dict = {'sample': {'sample2'}, 'sample_id': {'-1'}}
     self.previous_meta = BatonDataObjectAPI.get_all_metadata(self.fpath)
     BatonDataObjectAPI.add_metadata(self.fpath, self.meta_dict)
Пример #2
0
 def setUp(self):
     self.fpath = "/humgen/projects/serapis_staging/test-baton/test_metadata_add_rm.txt"
     BatonDataObjectAPI.add_metadata(self.fpath, {'uniq_key': {'first_value'}})
Пример #3
0
 def test_add_metadata(self):
     BatonDataObjectAPI.add_metadata(self.fpath, self.meta_dict)
     metadata = BatonDataObjectAPI.get_all_metadata(self.fpath).to_dict()
     self.assertDictEqual(self.meta_dict, metadata)