#NEWLINE# def testGetVertices( self ) : #NEWLINE# #INDENT# vList = self . vList #NEWLINE# vList . setVertex ( 0 , numpy . array ( [ 1 , 2 , 3 ] ) ) #NEWLINE# vList . setVertex ( 1 , numpy . array ( [ 4 , 5 , 6 ] ) ) #NEWLINE# vList . setVertex ( 2 , numpy . array ( [ 7 , 8 , 9 ] ) ) #NEWLINE# vList . setVertex ( 3 , numpy . array ( [ 0 , 11 , 12 ] ) ) #NEWLINE# self . assertTrue ( ( vList . getVertices ( [ 0 , 3 ] ) == numpy . array ( [ [ 1 , 2 , 3 ] , [ 0 , 11 , 12 ] ] ) ) . all ( ) ) #NEWLINE# self . assertTrue ( ( vList . getVertices ( [ 3 , 0 ] ) == numpy . array ( [ [ 0 , 11 , 12 ] , [ 1 , 2 , 3 ] ] ) ) . all ( ) ) #NEWLINE# self . assertTrue ( ( vList . getVertices ( [ 0 , 2 ] ) == numpy . array ( [ [ 1 , 2 , 3 ] , [ 7 , 8 , 9 ] ] ) ) . all ( ) ) #NEWLINE# self . assertTrue ( ( vList . getVertices ( [ 1 ] ) == numpy . array ( [ [ 4 , 5 , 6 ] ] ) ) . all ( ) ) #NEWLINE# for i in range ( 4 ) : #NEWLINE# #INDENT# self . assertVertexEquals ( vList . getVertices ( ) [ i ] , vList . V [ i ] ) #NEWLINE# #UNINDENT# for i in range ( 4 , self . numVertices ) : #NEWLINE# #INDENT# self . assertVertexEquals ( vList . getVertices ( ) [ vList ] , vList . getVertex ( i ) ) #NEWLINE# #UNINDENT# self . assertVertexEquals ( vList . getVertices ( ) [ 4 ] , self . emptyVertex )