title: Django 1.3: Outbox empty during tests
body: <p>Maybe I don't understand how outbox works but from the documentation I understood that it just catches all outgoing mail during testing.</p>
  
  <p>I created a new project with a new application and added the following code.</p>
  
  <pre><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 ), 1 )
  </code></pre>
  
  <p>When I run python manage.py test app_name it gives an assertion error that 0 != 1. Am I doing something wrong?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Well this is weird if I import django.core.mail and use mail.outbox it does work. </p>
  
  <p>Tried to compare the direct import of outbox and mail.outbox and they both give different results</p>
  
  <pre><code>from django.core import mail
  from django.core.mail import send_mail, outbox     
  ...
  self.assertEqual(outbox, mail.outbox)
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>- []
  + [&lt;django.core.mail.message.EmailMessage object at 0x1e1fd90&gt;]
  </code></pre>
  
  <p>Maybe I've been working to long and missing something really obvious?</p>