diff options
| author | swistakm | 2013-02-27 10:58:13 +0100 |
|---|---|---|
| committer | swistakm | 2013-02-27 10:58:13 +0100 |
| commit | 55ea5b9460842f6b8aefa67575a6d25b2d479593 (patch) | |
| tree | 5101bfb277ccc06e6a41aacd19d359f200cdd047 /rest_framework/tests/authentication.py | |
| parent | dd355d511c2e1bf4b26be80955a4f53b20bfed1b (diff) | |
| download | django-rest-framework-55ea5b9460842f6b8aefa67575a6d25b2d479593.tar.bz2 | |
import compat version of unittest
Diffstat (limited to 'rest_framework/tests/authentication.py')
| -rw-r--r-- | rest_framework/tests/authentication.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py index d1c978fc..8ef9d3ff 100644 --- a/rest_framework/tests/authentication.py +++ b/rest_framework/tests/authentication.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals from django.contrib.auth.models import User from django.http import HttpResponse from django.test import Client, TestCase +from django.utils import unittest import time from rest_framework import HTTP_HEADER_ENCODING, status from rest_framework import permissions @@ -13,7 +14,7 @@ from rest_framework.compat import oauth from rest_framework.compat import oauth_provider import json import base64 -import unittest + class MockView(APIView): permission_classes = (permissions.IsAuthenticated,) |
