SyntaxFix
Write A Post
Hire A Developer
Questions
Though an old question, I would like to add that currently mock library (backport of unittest.mock) supports assert_not_called method.
mock
assert_not_called
Just upgrade yours;
pip install mock --upgrade