#NEWLINE# def test_to_coo_duplicate_index_entries( self ) : #NEWLINE# #INDENT# ss = pd . concat ( [ self . sparse_series [ 0 ] , self . sparse_series [ 0 ] ] ) . to_sparse ( ) #NEWLINE# self . assertRaises ( ValueError , ss . to_coo , [ 'A' , 'B' ] , [ 'C' , 'D' ] )