#NEWLINE# def test_cumsum( self ) : #NEWLINE# #INDENT# result = self . frame . cumsum ( ) #NEWLINE# expected = self . frame . to_dense ( ) . cumsum ( ) #NEWLINE# tm . assertIsInstance ( result , SparseDataFrame ) #NEWLINE# tm . assert_frame_equal ( result . to_dense ( ) , expected )