def post(self): external_id = self.get_argument('external_id') volume = self.get_argument('volume') reagent_type = self.get_argument('reagent_type') process = ReagentCreationProcess.create(self.current_user, external_id, volume, reagent_type) self.write({'process': process.id})
def test_reagent_composition_attributes(self): obs = ReagentComposition(1) self.assertEqual(obs.upstream_process, ReagentCreationProcess(5)) self.assertEqual(obs.container, Tube(1)) self.assertEqual(obs.total_volume, 10) self.assertIsNone(obs.notes) self.assertEqual(obs.composition_id, 3073) self.assertEqual(obs.external_lot_id, '157022406') self.assertEqual(obs.reagent_type, 'extraction kit')