Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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

Change History (2)

comment:1 by Russell Keith-Magee, 16 years ago

Resolution: invalid
Status: newclosed

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.

comment:2 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top