@composite
def lease_strategy(draw, dataset_id=st.uuids(), node_id=st.uuids()):
 return Lease(dataset_id=draw(dataset_id), node_id=draw(node_id), expiration=draw(datetimes()))

@ composite def lease_strategy ( draw , dataset_id = st . uuids ( ) , node_id = st . uuids ( ) ) : return Lease ( dataset_id = draw ( dataset_id ) , node_id = draw ( node_id ) , expiration = draw ( datetimes ( ) ) )
a hypothesis strategy to generate a lease .