#NEWLINE# def _assert_raises_regexp( self , expected_exception , expected_regexp , callable_obj = None , * args , **kwargs ) : #NEWLINE# #INDENT# if ( expected_regexp is not None ) : #NEWLINE# #INDENT# expected_regexp = re . compile ( expected_regexp ) #NEWLINE# #UNINDENT# context = _AssertRaisesContext ( expected_exception , self , expected_regexp ) #NEWLINE# if ( callable_obj is None ) : #NEWLINE# #INDENT# return context #NEWLINE# #UNINDENT# with context : #NEWLINE# #INDENT# callable_obj ( * args , ** kwargs )