Exemple #1
0
 def test_hash_ids(self):
     table = _load_table(self.table)
     exp = {
         'O1': '00594a175ce5a58f286d91ca0a6f15a2',
         'O2': 'bfc60714f62f15e1e72e0b21454cc99e'
     }
     obs = _hash_ids(table)
     self.assertEqual(obs, exp)
     tab_obs = sorted(table.ids(axis='observation'))
     tab_exp = sorted(list(exp.values()))
     self.assertEqual(tab_obs, tab_exp)
Exemple #2
0
 def test_load_table(self):
     exp = biom.example_table.copy()
     obs = _load_table(self.table)
     self.assertEqual(obs, exp)