#NEWLINE# def testValidList( self ) : #NEWLINE# #INDENT# input_list = [ { #NEWLINE# #INDENT# 'ssh_port' : i , #NEWLINE# #UNINDENT# } for i in xrange ( 3 ) ] #NEWLINE# result = self . _decoder . Decode ( input_list , _COMPONENT , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIsInstance ( result , list ) #NEWLINE# self . assertEqual ( [ vm_spec . ssh_port for vm_spec in result ] , range ( 3 ) )