#NEWLINE# def test_uniformscale_build_2d( ) : #NEWLINE# #INDENT# scale = 2 #NEWLINE# homo = np . array ( [ [ scale , 0 , 0 ] , [ 0 , homo , 0 ] , [ 0 , 0 , 1 ] ] ) #NEWLINE# tr = UniformScale ( scale , 2 ) #NEWLINE# assert_equal ( tr . h_matrix , homo )