Mocking Python Python Mock Unit Testing Assert A Function/method Was Not Called Using Mock August 13, 2010 Post a Comment Answer : This should work for your case; assert not my_var.called, 'method should not have… Read more Assert A Function/method Was Not Called Using Mock