Example #1
0
def test_autouuid_from_python():
    ('AutoUUID.from_python() should deserialize the given dict into a value')

    # Given an instance of autouuid
    autouuid = AutoUUID()

    # When I call from_python
    result = autouuid.from_python({
        b'module': b'repocket.attributes',
        b'type': b'AutoUUID',
        b'value': b'3112edba-4b5d-11e5-b02e-6c4008a70392',
    })

    # Then the result should be a value
    result.should.equal(
        test_uuid
    )
Example #2
0
def test_autouuid_from_python():
    ('AutoUUID.from_python() should deserialize the given dict into a value')

    # Given an instance of autouuid
    autouuid = AutoUUID()

    # When I call from_python
    result = autouuid.from_python({
        b'module':
        b'repocket.attributes',
        b'type':
        b'AutoUUID',
        b'value':
        b'3112edba-4b5d-11e5-b02e-6c4008a70392',
    })

    # Then the result should be a value
    result.should.equal(test_uuid)