From 08b70949c71de01523440848ed1ac3bb6dea599a Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 18 Sep 2012 21:10:07 -0400 Subject: [PATCH] Fix a test and a typo in an example --- examples/playbooks/ansible_pull.yml | 2 +- test/TestPlayBook.py | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/playbooks/ansible_pull.yml b/examples/playbooks/ansible_pull.yml index c2d37d83225..754e225064a 100644 --- a/examples/playbooks/ansible_pull.yml +++ b/examples/playbooks/ansible_pull.yml @@ -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 - 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 diff --git a/test/TestPlayBook.py b/test/TestPlayBook.py index dccf35d2183..585c5427c01 100644 --- a/test/TestPlayBook.py +++ b/test/TestPlayBook.py @@ -193,8 +193,10 @@ class TestPlaybook(unittest.TestCase): runner_callbacks=test_callbacks ) result = playbook.run() - self.assertIn('localhost', result) - self.assertIn('ok', result['localhost']) - self.assertEqual(result['localhost']['ok'], 6) - self.assertIn('failures', result['localhost']) - self.assertEqual(result['localhost']['failures'], 0) + assert 'localhost' in result + assert 'ok' in result['localhost'] + assert result['localhost']['ok'] == 6 + assert 'failures' in result['localhost'] + assert result['localhost']['failures'] == 0 + +