#NEWLINE# def _expect_success( self , config , name = 'block' ) : #NEWLINE# #INDENT# if ( not self . fails ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for fail in self . fails : #NEWLINE# #INDENT# if ( not fail ( config ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise AssertionError ( ( "Unexpected success for '%s' (%s)" % ( name , ' and ' . join ( ( fail . _as_string ( config ) for fail in self . fails ) ) ) ) )