<s> import timeit <EOL> import unittest <EOL> import test . test_support <EOL> class TestTimeit ( unittest . TestCase ) : <EOL> def test_oct ( self ) : <EOL> timing = timeit . Timer ( '<STR_LIT>' , '<STR_LIT>' ) . timeit ( number = <NUM_LIT> ) <EOL> self . assertTrue ( timing > <NUM_LIT:0.> ) <EOL> timing_vector = timeit . Timer ( '<STR_LIT>' ) . repeat ( number = <NUM_LIT> ) <EOL> self . assertEqual ( len ( timing_vector ) , <NUM_LIT:3> ) <EOL> self . assertTrue ( min ( timing_vector ) > <NUM_LIT:0.> ) <EOL> def test_str ( self ) : <EOL> s = """<STR_LIT>""" <EOL> t = timeit . Timer ( stmt = s ) <EOL> self . assertTrue ( t . timeit ( number = <NUM_LIT> ) > <NUM_LIT:0.> ) <EOL> timing_vector = t . repeat ( number = <NUM_LIT> , repeat = <NUM_LIT:10> ) <EOL> self . assertEqual ( len ( timing_vector ) , <NUM_LIT:10> ) <EOL> self . assertTrue ( min ( timing_vector ) > <NUM_LIT:0.> ) <EOL> def test_main ( ) : <EOL> test . test_support . run_unittest ( TestTimeit ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
