Commit 55ea5b94 by swistakm

import compat version of unittest

parent dd355d51
...@@ -2,6 +2,7 @@ from __future__ import unicode_literals ...@@ -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 ...@@ -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,)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment