I am using Django for my web development framework. And now I am writing unittest. How can I assert that a function is not executed in my test code?
For example, this is the use case: My test code is testing a user is typing a wrong password while signing in. I want to make sure that reset password function is not executed in this use case.
Well, this doesn't really reflect the real situation but I hope you get my point.
resetfunction so it does nothing.