#NEWLINE# def test_binary_ops( self ) : #NEWLINE# #INDENT# binary_ops = [ eq , ge , gt , le , lt , ne , sub , and_ , or_ , xor ] #NEWLINE# try : #NEWLINE# #INDENT# binary_ops . append ( cmp ) #NEWLINE# #UNINDENT# except NameError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# for op in binary_ops : #NEWLINE# #INDENT# self . assertEqual ( op ( self . lazy , self . lazy ) , op ( self . base , self . base ) , str ( op ) ) #NEWLINE# self . assertEqual ( op ( self . lazy , self . base ) , op ( self . base , self . base ) , str ( op ) ) #NEWLINE# self . assertEqual ( op ( self . base , self . lazy ) , op ( self . base , self . base ) , str ( op ) ) #NEWLINE# #UNINDENT# self . assertTrue ( ( 2 in self . lazy ) ) #NEWLINE# self . assertFalse ( ( 42 in self . lazy ) )