@@ -0,0 +1,542 @@
+from unittest import TestCase%0Afrom cmsplugin_feedback.views import JsonResponse%0A%0A%0Aclass JsonResponseTest(TestCase):%0A    def test_from_string(self):%0A        content = '%7B%22foo%22: 1%7D'%0A        res = JsonResponse(content)%0A        self.assertEqual(res.content, content)%0A        self.assertEqual(res%5B'Content-Type'%5D, 'application/json')%0A%0A    def test_from_dict(self):%0A        content = %7B'foo': 1%7D%0A        res = JsonResponse(content)%0A        self.assertEqual(res.content, '%7B%22foo%22: 1%7D')%0A        self.assertEqual(res%5B'Content-Type'%5D, 'application/json')%0A

test json response