commander_coder a écrit :
Hello,I have a routine that sends an email (this is how a Django view notifies me that an event has happened). I want to unit test thatroutine.
http://docs.djangoproject.com/en/dev/topics/email/#e-mail-backendsOr if you're stuck with 1.x < 1.2a, you could just mock the send_mail function to test that your app does send the appropriate mail - which is what you really want to know.
My 2 cents... -- http://mail.python.org/mailman/listinfo/python-list