# -*- coding: utf-8
from __future__ import unicode_literals

from django.db import models
from django.test import TestCase

from shop.models.cart import BaseCartItem
from shop.models.fields import JSONField


class JSONFieldTest(TestCase):
    """JSONField Wrapper Tests"""

    def test_json_field_create(self):
        """Test saving a JSON object in our JSONField"""
        json_obj = {
            "item_1": "this is a json blah",
            "blergh": "hey, hey, hey"}

        obj = BaseCartItem.objects.create(extra=json_obj)
        new_obj = JsonModel.objects.get(id=obj.id)

        self.assertEqual(new_obj.json, json_obj)

@@ -58,37 +58,8 @@
 ls%0A%0A
-from django.db import models%0A
 from
@@ -134,49 +134,8 @@
 tem%0A
-from shop.models.fields import JSONField%0A
 %0A%0Acl
@@ -479,17 +479,20 @@
 j = 
-JsonModel
+BaseCartItem
 .obj

Fix test