Example #1
0
 def test_serialize_file(self):
     p = Pipeline.from_functions(['enrich_protein_and_rna_origins'])
     sio = StringIO()
     p.dump(sio)
     sio.seek(0)
     p_reconstituted = Pipeline.load(sio)
     self.assertEqual(p.protocol, p_reconstituted.protocol)
Example #2
0
 def test_serialize_file(self):
     p = Pipeline.from_functions(['infer_central_dogma'])
     sio = StringIO()
     p.dump(sio)
     sio.seek(0)
     p_reconstituted = Pipeline.load(sio)
     self.assertEqual(p.protocol, p_reconstituted.protocol)