@composite
def related_deployments_strategy(draw, number_of_deployments):
 node_uuid_pool = draw(node_uuid_pool_strategy())
 deployments = set()
 while True:
  deployments.add(draw(deployment_strategy(node_uuid_pool=node_uuid_pool)))
  if (len(deployments) == number_of_deployments):
   return tuple(deployments)

@ composite def related_deployments_strategy ( draw , number_of_deployments ) : node_uuid_pool = draw ( node_uuid_pool_strategy ( ) ) deployments = set ( ) while True : deployments . add ( draw ( deployment_strategy ( node_uuid_pool = node_uuid_pool ) ) ) if ( len ( deployments ) == number_of_deployments ) : return tuple ( deployments )
a strategy to generate more than 1 unique deployments that are related .