Fix a test and a typo in an example

pull/1046/merge
Michael DeHaan 12 years ago
parent eefe66f1cc
commit 08b70949c7

@ -53,4 +53,4 @@
action: template src=templates/etc_cron.d_ansible-pull.j2 dest=/etc/cron.d/ansible-pull owner=root group=root mode=0644 action: template src=templates/etc_cron.d_ansible-pull.j2 dest=/etc/cron.d/ansible-pull owner=root group=root mode=0644
- name: Create logrotate entry for ansible-pull.log - name: Create logrotate entry for ansible-pull.log
action: template src=templates/etc_logrotate.d_ansible-pull.j2 dest=/etc/logrorate.d/ansible-pull owner=root group=root mode=0644 action: template src=templates/etc_logrotate.d_ansible-pull.j2 dest=/etc/logrotate.d/ansible-pull owner=root group=root mode=0644

@ -193,8 +193,10 @@ class TestPlaybook(unittest.TestCase):
runner_callbacks=test_callbacks runner_callbacks=test_callbacks
) )
result = playbook.run() result = playbook.run()
self.assertIn('localhost', result) assert 'localhost' in result
self.assertIn('ok', result['localhost']) assert 'ok' in result['localhost']
self.assertEqual(result['localhost']['ok'], 6) assert result['localhost']['ok'] == 6
self.assertIn('failures', result['localhost']) assert 'failures' in result['localhost']
self.assertEqual(result['localhost']['failures'], 0) assert result['localhost']['failures'] == 0

Loading…
Cancel
Save