diff --git a/providers/base/tests/test_snap_update_test.py b/providers/base/tests/test_snap_update_test.py index ca849bacc..14c938789 100644 --- a/providers/base/tests/test_snap_update_test.py +++ b/providers/base/tests/test_snap_update_test.py @@ -245,5 +245,5 @@ def test_snap_revert(self, mock_snap_info, mock_snapd_revert): } with patch("builtins.open", mock_open(read_data=mock_file_data)) as m: srr.snap_revert() - mock_snapd_revert.assert_called() + self.assertTrue(mock_snapd_revert.called) m.assert_called_with("/test/info", "w")