コード例 #1
0
ファイル: test_process.py プロジェクト: iamluiger/quipucords
 def test_with_items_result(self):
     """The result of a with_items task."""
     self.assertTrue(
         process.is_ansible_task_result(
             ansible_results([{
                 'item': 'a',
                 'stdout': 'a'
             }, {
                 'item': 'b',
                 'stdout': 'b'
             }])))
コード例 #2
0
 def test_ansible_result(self):
     """A single Ansible result."""
     self.assertTrue(process.is_ansible_task_result(ansible_result('a')))
コード例 #3
0
 def test_skipped(self):
     """The result of a skipped task."""
     self.assertTrue(
         process.is_ansible_task_result({process.SKIPPED: True}))
コード例 #4
0
 def test_malformed_dict(self):
     """A dictionary with the wrong contents."""
     self.assertFalse(process.is_ansible_task_result({'a': 'b'}))
コード例 #5
0
 def test_not_dict(self):
     """A value that is not a dictionary."""
     self.assertFalse(process.is_ansible_task_result('foo'))