def test_uuid_decode(self): assert (DataClassWithUuid.from_dict( self.dc_uuid_json) == DataClassWithUuid(UUID(self.uuid_s)))
def test_uuid_encode(self): assert (DataClassWithUuid(UUID( self.uuid_s)).to_json() == self.dc_uuid_json)