#NEWLINE# def __exit__( self , exc_type , exc_val , tb ) : #NEWLINE# #INDENT# bottle . depr = self . orig #NEWLINE# assert self . warnings , ( 'Expected warning with message %r bot no warning was triggered' % self . searchtext )