I\'m using the Mock library to test my application, but I want to assert that some function was not called. Mock docs talk about methods like mock.assert_called_with>
mock.assert_called_with>
With python >= 3.5 you can use mock_object.assert_not_called().
python >= 3.5
mock_object.assert_not_called()