<s> import os <EOL> import sys <EOL> import inspect <EOL> import log_calls <EOL> import unittest <EOL> def usage ( ) : <EOL> """<STR_LIT>""" <EOL> exit ( usage . __doc__ ) <EOL> verbosity = <NUM_LIT:1> <EOL> if len ( sys . argv ) > <NUM_LIT:1> : <EOL> arg = sys . argv [ <NUM_LIT:1> ] . upper ( ) <EOL> if arg . startswith ( "<STR_LIT>" ) : <EOL> usage ( ) <EOL> if arg . startswith ( "<STR_LIT>" ) : <EOL> verbosity = <NUM_LIT:0> <EOL> elif arg . startswith ( "<STR_LIT>" ) : <EOL> verbosity = <NUM_LIT:2> <EOL> home , _ = os . path . split ( __file__ ) <EOL> tests_dir = os . path . join ( home , '<STR_LIT>' , '<STR_LIT>' ) <EOL> tests_dir = os . path . abspath ( tests_dir ) <EOL> os . chdir ( tests_dir ) <EOL> unittest . TextTestRunner ( verbosity = verbosity ) . run ( <EOL> unittest . defaultTestLoader . discover ( tests_dir ) <EOL> ) </s>
