diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-07 15:41:17 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-11-07 15:41:17 +0000 |
| commit | 035cb99b47d8580b2619788fb08eed9cf7968590 (patch) | |
| tree | 73d5896cd9ca3c87c2d1f0ddc01dea94bba5f97b /tests/regressiontests/requests/tests.py | |
| parent | c6e64aaa66eef7bf765cba538d670de9bf711d6b (diff) | |
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
Diffstat (limited to 'tests/regressiontests/requests/tests.py')
| -rw-r--r-- | tests/regressiontests/requests/tests.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/regressiontests/requests/tests.py b/tests/regressiontests/requests/tests.py index 2087dc43e3..0bba733795 100644 --- a/tests/regressiontests/requests/tests.py +++ b/tests/regressiontests/requests/tests.py @@ -1,15 +1,14 @@ -from datetime import datetime, timedelta import time +from datetime import datetime, timedelta from StringIO import StringIO -import unittest -from django.http import HttpRequest, HttpResponse, parse_cookie -from django.core.handlers.wsgi import WSGIRequest, LimitedStream from django.core.handlers.modpython import ModPythonRequest +from django.core.handlers.wsgi import WSGIRequest, LimitedStream +from django.http import HttpRequest, HttpResponse, parse_cookie +from django.utils import unittest from django.utils.http import cookie_date class RequestsTests(unittest.TestCase): - def test_httprequest(self): request = HttpRequest() self.assertEqual(request.GET.keys(), []) |
