'JSONModel.field_custom has a custom DjangoJSONEncoder.'

def test_custom_encoding(self):

    some_uuid = uuid.uuid4()
    obj_before = {'date': datetime.date(2016, 8, 12), 'datetime': datetime.datetime(2016, 8, 12, 13, 44, 47, 575981), 'decimal': Decimal('10.54'), 'uuid': some_uuid}
    obj_after = {'date': '2016-08-12', 'datetime': '2016-08-12T13:44:47.575', 'decimal': '10.54', 'uuid': str(some_uuid)}
    JSONModel.objects.create(field_custom=obj_before)
    loaded = JSONModel.objects.get()
    self.assertEqual(loaded.field_custom, obj_after)
