django/django — pull request #3353 by zedr (2014-10-13 11:23:59+00:00)
Title: Fixed #23606 -- Implement the RequestFactory trace() method

The RequestFactory class did not implement a trace() method, and
therefore raised an AttributeError when used to create TRACE requests.

This change implements a factory method that returns a very basic TRACE
request object, which should be suitable for most test cases.

It also reworks the original TestClientTests suite so that the following
conditions are checked:

- The test factory can create requests for all the HTTP/1.1 methods;
- The GET request test is tested separately;
- The TRACE request is tested with a test view that simulates the
echo response, according to rfc2616.

This fixes https://code.djangoproject.com/ticket/23606