Django 1.3: Outbox empty during tests
问题 Maybe I don't understand how outbox works but from the documentation I understood that it just catches all outgoing mail during testing. I created a new project with a new application and added the following code. from django.test import TestCase from django.core.mail import send_mail, outbox class SimpleTest(TestCase): def test_basic_addition(self): send_mail('Subject here', 'Here is the message.', 'from@example.com', ['to@example.com'], fail_silently=False) self.assertEqual( len( outbox ),