コード例 #1
0
    def to_son(self):
        field = UUIDField()

        uuid = uuid4()

        expect(field.to_son(uuid)).to_equal(uuid)
        expect(field.to_son(str(uuid))).to_equal(uuid)