Commit 721dc519 by Pierre Dulac

Use django.utils to import the unittest module

for a cross python versions compatibility
parent 182edb3e
...@@ -3,6 +3,7 @@ from django.core.urlresolvers import reverse ...@@ -3,6 +3,7 @@ from django.core.urlresolvers import reverse
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
from rest_framework import HTTP_HEADER_ENCODING from rest_framework import HTTP_HEADER_ENCODING
from rest_framework import exceptions from rest_framework import exceptions
from rest_framework import permissions from rest_framework import permissions
...@@ -22,7 +23,6 @@ from rest_framework.views import APIView ...@@ -22,7 +23,6 @@ from rest_framework.views import APIView
import json import json
import base64 import base64
import datetime import datetime
import unittest
factory = RequestFactory() factory = RequestFactory()
......
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