def test_autouuid_to_python(): ('AutoUUID#to_python() should prepare data to be serialized') # Given an instance of autouuid autouuid = AutoUUID() # When I call to_python result = autouuid.to_python('3112edba-4b5d-11e5-b02e-6c4008a70392') # Then the result should be a dictionary with metadata result.should.equal({ 'module': 'repocket.attributes', 'type': 'AutoUUID', 'value': '3112edba-4b5d-11e5-b02e-6c4008a70392', })