I found the Django documentation about testing E-mail services confusing. It says here http://docs.djangoproject.com/en/1.1/topics/testing/#e-mail-services "Django's test runner automatically redirects all Django-sent e-mail to a dummy outbox", but the example code shows using the 'mail' object directly in the TestCase and not in the view like the documentation states.
I am using "manage.py testserver" and Selenium to drive the browser. When I have a test that triggers an email event, the email is sent and not collected in the dummy outbox. Is this the expected behavior? Would the behavior be different if I loaded the view using django.test.client instead of through the testserver? It would be nice of the testserver also used the dummy outbox, but at a minimum I think the documentation should be clearer and perhaps give a better example? Cheers, Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.