mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
import compat version of unittest
This commit is contained in:
parent
dd355d511c
commit
55ea5b9460
|
@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
from django.test import Client, TestCase
|
from django.test import Client, TestCase
|
||||||
|
from django.utils import unittest
|
||||||
import time
|
import time
|
||||||
from rest_framework import HTTP_HEADER_ENCODING, status
|
from rest_framework import HTTP_HEADER_ENCODING, status
|
||||||
from rest_framework import permissions
|
from rest_framework import permissions
|
||||||
|
@ -13,7 +14,7 @@ from rest_framework.compat import oauth
|
||||||
from rest_framework.compat import oauth_provider
|
from rest_framework.compat import oauth_provider
|
||||||
import json
|
import json
|
||||||
import base64
|
import base64
|
||||||
import unittest
|
|
||||||
|
|
||||||
class MockView(APIView):
|
class MockView(APIView):
|
||||||
permission_classes = (permissions.IsAuthenticated,)
|
permission_classes = (permissions.IsAuthenticated,)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user