Beispiel #1
0
 def get(self):
     res = {"data": [
         [p.id, p.container.external_id, p.is_plate_pool,
          p.upstream_process.id, ]
         for p in PoolComposition.get_pools()
     ]}
     self.write(res)
Beispiel #2
0
 def test_pool_composition_pools(self):
     obs = PoolComposition.get_pools()
     obs_ids = [x.id for x in obs]
     exp_ids = [1, 2, 3, 4, 5, 6]
     self.assertEqual(obs_ids, exp_ids)