#9670 closed (invalid)
django.core.mail.outbox doesn't exist anymore, remove from documentation
Reported by: | joelpittet | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Keywords: | django.core.mail | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I was doing some testing and searching and there are some references in the documentation about "assertEquals(len(mail.outbox), 1)"
but mail.outbox is not defined in the mail module.
http://docs.djangoproject.com/en/dev/topics/testing/#e-mail-services
Note:
See TracTickets
for help on using tickets.
You need to read the documentation more carefully. mail.outbox is a test framework utility. It only exists in the context of a running test suite. It doesn't exist during general runtime. The existence of mail.outbox is validated by the test suite.