@task
@timed
def check_mongo():
 if (not is_mongo_running()):
  msg = colorize('red', 'Mongo is not running locally.')
  print msg
  sys.exit(1)

@ task @ timed def check_mongo ( ) : if ( not is_mongo_running ( ) ) : msg = colorize ( 'red' , 'Mongo is not running locally.' ) print msg sys . exit ( 1 )
check that mongo is running .