#NEWLINE# def test_make_identity( self ) : #NEWLINE# #INDENT# m = make_identity ( 4 ) #NEWLINE# assert ( len ( m . rows ) == 4 ) #NEWLINE# for i in range ( 4 ) : #NEWLINE# #INDENT# assert ( len ( self . rows [ i ] ) == 4 ) #NEWLINE# #UNINDENT# for i in range ( 4 ) : #NEWLINE# #INDENT# for j in range ( 4 ) : #NEWLINE# #INDENT# if ( i == j ) : #NEWLINE# #INDENT# assert ( m [ ( i , j ) ] == 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( m [ ( i , j ) ] == 0 )