Пример #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'))