I'm mocking out Django's send_mail function using the Mock library:
from django.core.mail import send_mail
send_mail = Mock()
My problem arises when I want to assert that send_mail was called. I can't use assert_called_with or related methods because they expect arguments, which I won't fully know/don't want to type out (it involves templates) in the testing environment. I just want to know the method has been called. Print statements clearly indicate that it is called, yet if I try this:
self.assertEqual(send_mail.called, True)
I get an error, as the called attribute is still False. How can I test if a method has been called without having to specify attributes.