<s> class RunTests : <EOL> def __init__ ( self ) : <EOL> self . testlist = { } <EOL> self . test_idx = <NUM_LIT:0> <EOL> def add ( self , test ) : <EOL> self . testlist [ len ( self . testlist ) ] = test <EOL> def start_test ( self ) : <EOL> if self . test_idx >= len ( self . testlist ) : <EOL> return <EOL> idx = self . test_idx <EOL> self . test_idx += <NUM_LIT:1> <EOL> test_kls = self . testlist [ idx ] <EOL> t = test_kls ( ) <EOL> t . start_next_test = getattr ( self , "<STR_LIT>" ) <EOL> t . run ( ) </s>
