Ticket #11961: 11961.diff

File 11961.diff, 1.8 KB (added by Tim Graham, 15 years ago)
  • docs/topics/testing.txt

     
    515515        >>> c = Client()
    516516        >>> c.get('/customers/details/?name=fred&age=7')
    517517
    518         If you provide URL both an encoded GET data and a data argument,
     518        If you provide a URL with both an encoded GET data and a data argument,
    519519        the data argument will take precedence.
    520520
    521521        If you set ``follow`` to ``True`` the client will follow any redirects
     
    627627
    628628        .. versionadded:: 1.1
    629629
    630         Makes an PUT request on the provided ``path`` and returns a
     630        Makes a PUT request on the provided ``path`` and returns a
    631631        ``Response`` object. Useful for testing RESTful interfaces. Acts just
    632632        like :meth:`Client.post` except with the PUT request method.
    633633
     
    11271127
    11281128During test running, each outgoing e-mail is saved in
    11291129``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.
    11311131It does not exist under normal execution conditions, i.e., when you're not
    11321132running unit tests. The outbox is created during test setup, along with the
    1133 dummy :class:`<~django.core.mail.SMTPConnection>`. When the test framework is
    1134 torn down, the standard :class:`<~django.core.mail.SMTPConnection>` class is
     1133dummy :class:`~django.core.mail.SMTPConnection`. When the test framework is
     1134torn down, the standard :class:`~django.core.mail.SMTPConnection` class is
    11351135restored, and the test outbox is destroyed.
    11361136
    11371137The ``outbox`` attribute is a special attribute that is created *only* when
Back to Top