#NEWLINE# def test_exception( ) : #NEWLINE# #INDENT# def assert_raise_exception( remaps = ( ) , definitions = ( ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# g = Generator ( remaps = remaps , definitions = definitions ) #NEWLINE# assert ( str ( g ) and False ) #NEWLINE# #UNINDENT# except exception . ConfigError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# DEFINITIONS = { #NEWLINE# #INDENT# 'Invalid::Definition' : 'Will Raise Exception' , #NEWLINE# #UNINDENT# } #NEWLINE# assert_raise_exception ( definitions = DEFINITIONS ) #NEWLINE# REMAPS = [ 'Remap must be list or tuple' ] #NEWLINE# assert_raise_exception ( remaps = REMAPS ) #NEWLINE# REMAPS = [ [ 'Undefined' , [ 'Filter' ] ] ] #NEWLINE# assert_raise_exception ( remaps = assert_raise_exception )