Ticket #11961: 11961.diff
File 11961.diff, 1.8 KB (added by , 15 years ago) |
---|
-
docs/topics/testing.txt
515 515 >>> c = Client() 516 516 >>> c.get('/customers/details/?name=fred&age=7') 517 517 518 If you provide URLboth an encoded GET data and a data argument,518 If you provide a URL with both an encoded GET data and a data argument, 519 519 the data argument will take precedence. 520 520 521 521 If you set ``follow`` to ``True`` the client will follow any redirects … … 627 627 628 628 .. versionadded:: 1.1 629 629 630 Makes a nPUT request on the provided ``path`` and returns a630 Makes a PUT request on the provided ``path`` and returns a 631 631 ``Response`` object. Useful for testing RESTful interfaces. Acts just 632 632 like :meth:`Client.post` except with the PUT request method. 633 633 … … 1127 1127 1128 1128 During test running, each outgoing e-mail is saved in 1129 1129 ``django.core.mail.outbox``. This is a simple list of all 1130 :class:` <~django.core.mail.EmailMessage>` instances that have been sent.1130 :class:`~django.core.mail.EmailMessage` instances that have been sent. 1131 1131 It does not exist under normal execution conditions, i.e., when you're not 1132 1132 running unit tests. The outbox is created during test setup, along with the 1133 dummy :class:` <~django.core.mail.SMTPConnection>`. When the test framework is1134 torn down, the standard :class:` <~django.core.mail.SMTPConnection>` class is1133 dummy :class:`~django.core.mail.SMTPConnection`. When the test framework is 1134 torn down, the standard :class:`~django.core.mail.SMTPConnection` class is 1135 1135 restored, and the test outbox is destroyed. 1136 1136 1137 1137 The ``outbox`` attribute is a special attribute that is created *only* when