<s> """<STR_LIT>""" <EOL> import sys <EOL> import os <EOL> import unittest <EOL> tests = [ ] <EOL> for root , dirs , files in os . walk ( "<STR_LIT:.>" ) : <EOL> for f in files : <EOL> f = os . path . join ( root , f ) <EOL> if f . endswith ( "<STR_LIT>" ) : <EOL> m = os . path . basename ( f ) . replace ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> d = os . path . dirname ( f ) <EOL> sys . path . append ( d ) <EOL> tests . append ( __import__ ( m ) ) <EOL> suite = unittest . TestSuite ( ) <EOL> if "<STR_LIT>" in sys . argv : <EOL> suffix = "<STR_LIT>" <EOL> else : <EOL> suffix = "<STR_LIT>" <EOL> for test in tests : <EOL> for item in dir ( test ) : <EOL> if item . endswith ( suffix ) : <EOL> suite . addTest ( unittest . makeSuite ( test . __dict__ [ item ] ) ) <EOL> unittest . TextTestRunner ( verbosity = <NUM_LIT:2> ) . run ( suite ) </s>
