From 5a55feb7d449b97b638d8a16d807b7ef52a63ea5 Mon Sep 17 00:00:00 2001 From: Matt Prahl Date: Apr 13 2017 13:38:08 +0000 Subject: Remove usage of 'assert_called_once' in test because pinned version of mock doesn't support it --- diff --git a/tests/test_pagure_lib.py b/tests/test_pagure_lib.py index d816823..c4e3b59 100644 --- a/tests/test_pagure_lib.py +++ b/tests/test_pagure_lib.py @@ -1416,7 +1416,7 @@ class PagureLibtests(tests.Modeltests): user='pingou', ) self.assertEqual(msg, 'Edited successfully settings of repo: test2') - mock_log.assert_called_once() + self.assertEqual(mock_log.call_count, 1) args = mock_log.call_args self.assertEqual(len(args), 2) self.assertEqual(args[0][0].fullname, 'test2')