#NEWLINE# def test_sanity_algorithms( self ) : #NEWLINE# #INDENT# for alg in self . algorithms : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . __algorithm_test_empty ( alg ) #NEWLINE# self . __algorithm_test_disconnected ( alg ) #NEWLINE# self . __algorithm_test_k3 ( alg ) #NEWLINE# self . __algorithm_test_selfloop ( alg ) #NEWLINE# self . __algorithm_test_isolated ( alg ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# e . args = ( ( ) + ( ( ( ( alg . args [ 0 ] + ' (in algorithm ' ) + alg . __name__ ) + ')' ) , ) ) #NEWLINE# e . args += e . args [ 1 : ] #NEWLINE# raise #NEWLINE# #UNINDENT# #UNINDENT# for alg in self . noncontiguous_algorithms : #NEWLINE# #INDENT# self . __algorithm_test_noncontiguous_nidc ( alg )