#NEWLINE# def test_ne( self ) : #NEWLINE# #INDENT# ts = Series ( [ 3 , 4 , 5 , 6 , 7 ] , [ 3 , 4 , 5 , 6 , 7 ] , dtype = float ) #NEWLINE# expected = [ True , True , False , True , True ] #NEWLINE# self . assertTrue ( tm . equalContents ( ( ts . index != 5 ) , expected ) ) #NEWLINE# self . assertTrue ( tm . equalContents ( ( ~ ( ts . index == 5 ) ) , expected ) )