from __future__ import unicode_literals
from django.test import TestCase
from django_ajax.response import JSONResponse

class ResponseTestCase(TestCase):
    def test_json_response(self):
        data = {'test': True}
        response = JSONResponse(data)

        self.assertEquals(200, response.status_code)
        self.assertEquals('application/json', response['Content-Type'])
        self.assertEquals('{"test": true}', response.content.encode('utf-8'))

from __future__ import unicode_literals
from django.test import TestCase
from django_ajax.response import JSONResponse

class ResponseTestCase(TestCase):
    def test_json_response(self):
        data = {'test': True}
        response = JSONResponse(data)

        self.assertEquals(200, response.status_code)
        self.assertEquals('application/json', response['Content-Type'])
        self.assertEquals('{"test": true}', str(response.content))

Fix tests