Fix whitespace

This commit is contained in:
Peter Eckersley 2016-03-30 13:59:12 -07:00
parent af1b136846
commit db5c4f9f91

View file

@ -85,18 +85,15 @@ class HookTest(unittest.TestCase):
@mock.patch('letsencrypt.hooks.logger.error')
@mock.patch('letsencrypt.hooks.Popen')
def test_run_hook(self, mock_popen, mock_error):
mock_cmd = mock.MagicMock()
mock_cmd.returncode = 1
mock_cmd.communicate.return_value = ("", "")
mock_popen.return_value = mock_cmd
hooks._run_hook("ls")
self.assertEqual(mock_error.call_count, 1)
mock_cmd.communicate.return_value = ("", "thing")
hooks._run_hook("ls")
self.assertEqual(mock_error.call_count, 2)
if __name__ == '__main__':