@pytest.mark.django_db
def test_jsonfield(settings):
    '\n    Test a model with a JSONField is handled correctly\n    '
    settings.CYBERSOURCE_SECURITY_KEY = 'asdf'
    receipt = ReceiptFactory.create()
    assert (serialize_model_object(receipt) == {'created_on': format_as_iso8601(receipt.created_on), 'data': receipt.data, 'id': receipt.id, 'updated_on': format_as_iso8601(receipt.updated_on), 'order': receipt.order.id})
Test a model with a JSONField is handled correctly
@pytest.mark.django_db
def test_jsonfield(settings):
    '\n    \n    '
    settings.CYBERSOURCE_SECURITY_KEY = 'asdf'
    receipt = ReceiptFactory.create()
    assert (serialize_model_object(receipt) == {'created_on': format_as_iso8601(receipt.created_on), 'data': receipt.data, 'id': receipt.id, 'updated_on': format_as_iso8601(receipt.updated_on), 'order': receipt.order.id})