def jenkins_build_results(inQueue=None, builds=None):
 strats = []
 if (inQueue is None):
  inQueue = booleans()
  strats.append(just(pmap()))
 without_builds = fixed_dictionaries(dict(inQueue=inQueue))
 if ((builds is None) or (builds is NO_BUILDS)):
  strats.append(without_builds)
 if (builds is None):
  builds = lists(jenkins_builds, average_size=1)
 if (builds is not NO_BUILDS):
  with_builds = fixed_dictionaries(dict(inQueue=inQueue, builds=builds, property=dictionaries(text(max_size=2), text(max_size=2), average_size=1, max_size=2)))
  strats.append(with_builds)
 return one_of(*strats)

def jenkins_build_results ( inQueue = None , builds = None ) : strats = [ ] if ( inQueue is None ) : inQueue = booleans ( ) strats . append ( just ( pmap ( ) ) ) without_builds = fixed_dictionaries ( dict ( inQueue = inQueue ) ) if ( ( builds is None ) or ( builds is NO_BUILDS ) ) : strats . append ( without_builds ) if ( builds is None ) : builds = lists ( jenkins_builds , average_size = 1 ) if ( builds is not NO_BUILDS ) : with_builds = fixed_dictionaries ( dict ( inQueue = inQueue , builds = builds , property = dictionaries ( text ( max_size = 2 ) , text ( max_size = 2 ) , average_size = 1 , max_size = 2 ) ) ) strats . append ( with_builds ) return one_of ( * strats )
create a strategy for generating jenkins api information for a job .