예제 #1
0
 def __init__(self, workflow):
     self.wf = workflow
     self.wf.parse()
     self.wid = pu.get_id(os.getuid(), self.wf.workflow_path)
     log.debug('workflow:\n{}'.format(
         yaml.dump(self.wf, default_flow_style=False, default_style='')))
예제 #2
0
 def test_get_id(self):
     id = pu.get_id('abcd', 1234, 'efgh')
     self.assertEqual(id, 'cbae02068489f7577862718287862a3b')