mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
c6e64aaa66
commit
035cb99b47
|
@ -1,15 +1,14 @@
|
||||||
from datetime import datetime, timedelta
|
|
||||||
import time
|
import time
|
||||||
|
from datetime import datetime, timedelta
|
||||||
from StringIO import StringIO
|
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.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
|
from django.utils.http import cookie_date
|
||||||
|
|
||||||
class RequestsTests(unittest.TestCase):
|
class RequestsTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_httprequest(self):
|
def test_httprequest(self):
|
||||||
request = HttpRequest()
|
request = HttpRequest()
|
||||||
self.assertEqual(request.GET.keys(), [])
|
self.assertEqual(request.GET.keys(), [])
|
||||||
|
|
Loading…
Reference in New Issue