<s> import sys <EOL> import os . path <EOL> import unittest <EOL> import logging <EOL> def suite ( ) : <EOL> tests = unittest . defaultTestLoader . discover ( os . path . dirname ( __file__ ) ) <EOL> return tests <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> logging . basicConfig ( level = logging . CRITICAL ) <EOL> tests = suite ( ) <EOL> runner = unittest . TextTestRunner ( verbosity = <NUM_LIT:2> ) <EOL> result = runner . run ( tests ) <EOL> if not result . wasSuccessful ( ) : <EOL> sys . exit ( <NUM_LIT:1> ) </s>
