Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a typo and clarified how django.core.mail.outbox works in the t…

…esting framework. Fixed #9237.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5cd7af58c933a093aa17515d099d45bc9347d2c8 1 parent 7e4d277
Malcolm Tredinnick authored October 05, 2008

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  docs/topics/testing.txt
7  docs/topics/testing.txt
@@ -950,7 +950,7 @@ Django, such as your machine's mail server, if you're running one.)
950 950
 
951 951
 .. currentmodule:: django.core.mail
952 952
 
953  
-.. data:: django.core.mail.output
  953
+.. data:: django.core.mail.outbox
954 954
 
955 955
 During test running, each outgoing e-mail is saved in
956 956
 ``django.core.mail.outbox``. This is a simple list of all
@@ -961,6 +961,11 @@ dummy :class:`<~django.core.mail.SMTPConnection>`. When the test framework is
961 961
 torn down, the standard :class:`<~django.core.mail.SMTPConnection>` class is
962 962
 restored, and the test outbox is destroyed.
963 963
 
  964
+The ``outbox`` attribute is a special attribute that is created *only* when
  965
+the tests are run. It doesn't normally exist as part of the
  966
+:mod:`django.core.mail` module and you can't import it directly. The code
  967
+below shows how to access this attribute correctly.
  968
+
964 969
 Here's an example test that examines ``django.core.mail.outbox`` for length
965 970
 and contents::
966 971
 

0 notes on commit 5cd7af5

Please sign in to comment.
Something went wrong with that request. Please try again.