def _checkKnownRunOrder(order):
 if (order not in _runOrders):
  raise usage.UsageError(('--order must be one of: %s. See --help-orders for details' % (', '.join((repr(order) for order in _runOrders)),)))
 return order

def _checkKnownRunOrder ( order ) : if ( order not in _runOrders ) : raise usage . UsageError ( ( '--order must be one of: %s. See --help-orders for details' % ( ', ' . join ( ( repr ( order ) for order in _runOrders ) ) , ) ) ) return order
check that the given order is a known test running order .