#NEWLINE# def test_getitem_overload( self ) : #NEWLINE# #INDENT# sl = self . frame [ : 20 ] #NEWLINE# tm . assert_sp_frame_equal ( sl , self . frame . reindex ( self . frame . index [ : 20 ] ) ) #NEWLINE# d = self . frame . index [ 5 ] #NEWLINE# indexer = ( self . frame . index > d ) #NEWLINE# subindex = self . frame . index [ indexer ] #NEWLINE# subframe = self . frame [ indexer ] #NEWLINE# self . assert_numpy_array_equal ( subindex , subframe . index ) #NEWLINE# self . assertRaises ( Exception , self . frame . __getitem__ , indexer [ : ( - 1 ) ] )