示例#1
0
 def test_job_dump(self):
     new_job = Job.load(self.job.dump())
     self.assertEqual(new_job.name, 'inout')
     self.assertEqual(new_job.uuid, str(self.uuid))
     self.assertEqual(new_job.workdir, '/tmp')
     self.assertEqual(len(new_job.process.inputs), 3)
     self.assertEqual(new_job.json, self.job.json)  # idempotent test
示例#2
0
 def test_job_dump(self):
     new_job = Job.load(self.job.dump())
     self.assertEqual(new_job.name, 'greeter')
     self.assertEqual(new_job.uuid, str(self.uuid))
     self.assertEqual(new_job.workdir, '/tmp')
     self.assertEqual(len(new_job.process.inputs), 1)