예제 #1
0
 def test_get_workflow_by_name_no_name(self):
     workflow = Workflow('wf_name', 0)
     playbook = Playbook('test', [workflow])
     self.assertIsNone(playbook.get_workflow_by_name('invalid'))
예제 #2
0
 def test_get_workflow_by_name(self):
     workflow = Workflow('wf_name', 0)
     playbook = Playbook('test', [workflow])
     self.assertEqual(playbook.get_workflow_by_name('wf_name'), workflow)
예제 #3
0
 def test_get_workflow_by_name_no_workflows(self):
     playbook = Playbook('test', [])
     self.assertIsNone(playbook.get_workflow_by_name('anything'))
예제 #4
0
 def test_get_workflow_by_name_no_name(self):
     workflow = Workflow('wf_name', 0)
     playbook = Playbook('test', [workflow])
     self.assertIsNone(playbook.get_workflow_by_name('invalid'))
예제 #5
0
 def test_get_workflow_by_name(self):
     workflow = Workflow('wf_name', 0)
     playbook = Playbook('test', [workflow])
     self.assertEqual(playbook.get_workflow_by_name('wf_name'), workflow)
예제 #6
0
 def test_get_workflow_by_name_no_workflows(self):
     playbook = Playbook('test', [])
     self.assertIsNone(playbook.get_workflow_by_name('anything'))