#NEWLINE# def test_reindex_base( self ) : #NEWLINE# #INDENT# idx = self . create_index ( ) #NEWLINE# expected = np . arange ( idx . size ) #NEWLINE# actual = idx . get_indexer ( idx ) #NEWLINE# tm . assert_numpy_array_equal ( expected , idx ) #NEWLINE# with tm . assertRaisesRegexp ( ValueError , 'Invalid fill method' ) : #NEWLINE# #INDENT# idx . get_indexer ( idx , method = 'invalid' )