Beispiel #1
0
 def test_add_workflow_name_already_exists(self):
     workflow = MockWorkflow('uid', 'wf_name')
     playbook = Playbook('test', [workflow])
     playbook.add_workflow(MockWorkflow('uid2', 'wf_name'))
     self.assertEqual(playbook.workflows['wf_name'].uid, 'uid2')
Beispiel #2
0
 def test_add_workflow(self):
     workflow = MockWorkflow('uid', 'wf_name')
     playbook = Playbook('test', [workflow])
     playbook.add_workflow(MockWorkflow('uid2', 'test2'))
     orderless_list_compare(self, list(playbook.workflows.keys()),
                            ['wf_name', 'test2'])