def test_json(): prop = JSONProperty() prop.name = 'json' prop.owner = FooBar value = {'test': [1, 2, 3]} assert prop.deflate(value) == '{"test": [1, 2, 3]}' assert prop.inflate('{"test": [1, 2, 3]}') == value