#NEWLINE# def testInvalidList( self ) : #NEWLINE# #INDENT# input_list = [ { #NEWLINE# #INDENT# 'ssh_port' : 0 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ssh_port' : 1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ssh_pory' : 2 , #NEWLINE# #UNINDENT# } ] #NEWLINE# with self . assertRaises ( errors . Config . UnrecognizedOption ) as cm : #NEWLINE# #INDENT# self . _decoder . Decode ( input_list , _COMPONENT , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . assertEqual ( str ( cm . exception ) , 'Unrecognized options were found in test_component[2]: ssh_pory.' )