#NEWLINE# def test_stop_timer_invalid_input( self ) : #NEWLINE# #INDENT# class TestSpider ( Spider ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# bot = build_spider ( TestSpider ) #NEWLINE# self . assertRaises ( KeyError , self . timer . stop , 'zzz' )