diff options
| author | Pierre Dulac | 2013-03-01 23:27:47 +0100 |
|---|---|---|
| committer | Pierre Dulac | 2013-03-01 23:27:47 +0100 |
| commit | 721dc519ecdb8435bdeed6aa67d99be6968c0972 (patch) | |
| tree | 4856dd4eb6000669a3018e5c96fe557d124b45e2 /rest_framework/tests/authentication.py | |
| parent | 182edb3e9bd5ea9586c2a02befeac405fc1ee59c (diff) | |
| download | django-rest-framework-721dc519ecdb8435bdeed6aa67d99be6968c0972.tar.bz2 | |
Use django.utils to import the unittest module
for a cross python versions compatibility
Diffstat (limited to 'rest_framework/tests/authentication.py')
| -rw-r--r-- | rest_framework/tests/authentication.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py index 1212f0aa..0401ddd9 100644 --- a/rest_framework/tests/authentication.py +++ b/rest_framework/tests/authentication.py @@ -3,6 +3,7 @@ from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.http import HttpResponse from django.test import Client, TestCase +from django.utils import unittest from rest_framework import HTTP_HEADER_ENCODING from rest_framework import exceptions from rest_framework import permissions @@ -22,7 +23,6 @@ from rest_framework.views import APIView import json import base64 import datetime -import unittest factory = RequestFactory() |
