#NEWLINE# def test_inv_illformed( self ) : #NEWLINE# #INDENT# singular = DataFrame ( np . array ( [ [ 1 , 1 ] , [ 2 , 2 ] ] ) ) #NEWLINE# rs = pmath . inv ( singular ) #NEWLINE# expected = np . array ( [ [ 0.1 , 0.2 ] , [ 0.1 , 0.2 ] ] ) #NEWLINE# self . assertTrue ( np . allclose ( rs , expected ) )