def module_suite(module, classnames=None):
 if classnames:
  return unittest.TestLoader().loadTestsFromNames(classnames, module)
 elif hasattr(module, 'suite'):
  return module.suite()
 else:
  return unittest.TestLoader().loadTestsFromModule(module)

def module_suite ( module , classnames = None ) : if classnames : return unittest . TestLoader ( ) . loadTestsFromNames ( classnames , module ) elif hasattr ( module , 'suite' ) : return module . suite ( ) else : return unittest . TestLoader ( ) . loadTestsFromModule ( module )
makes a suite from a module .