Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make the requests test use unittest2, rather than the system unittest.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 035cb99b47d8580b2619788fb08eed9cf7968590 1 parent c6e64aa
Alex Gaynor authored November 07, 2010

Showing 1 changed file with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 9  tests/regressiontests/requests/tests.py
9  tests/regressiontests/requests/tests.py
... ...
@@ -1,15 +1,14 @@
1  
-from datetime import datetime, timedelta
2 1
 import time
  2
+from datetime import datetime, timedelta
3 3
 from StringIO import StringIO
4  
-import unittest
5 4
 
6  
-from django.http import HttpRequest, HttpResponse, parse_cookie
7  
-from django.core.handlers.wsgi import WSGIRequest, LimitedStream
8 5
 from django.core.handlers.modpython import ModPythonRequest
  6
+from django.core.handlers.wsgi import WSGIRequest, LimitedStream
  7
+from django.http import HttpRequest, HttpResponse, parse_cookie
  8
+from django.utils import unittest
9 9
 from django.utils.http import cookie_date
10 10
 
11 11
 class RequestsTests(unittest.TestCase):
12  
-
13 12
     def test_httprequest(self):
14 13
         request = HttpRequest()
15 14
         self.assertEqual(request.GET.keys(), [])

0 notes on commit 035cb99

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