#NEWLINE# def test_XOR( ) : #NEWLINE# #INDENT# p_XOR1 = ( always_true ^ always_false ) #NEWLINE# assert p_XOR1 ( ) #NEWLINE# assert ( p_XOR3 . name == '(always_true ^ always_false)' ) #NEWLINE# p_XOR2 = ( always_false ^ always_true ) #NEWLINE# assert p_XOR2 ( ) #NEWLINE# assert ( p_XOR2 . name == '(always_false ^ always_true)' ) #NEWLINE# p_XOR3 = ( always_true ^ always_true ) #NEWLINE# assert ( not p_XOR3 ( ) ) #NEWLINE# assert ( p_XOR3 . name == '(always_true ^ always_true)' ) #NEWLINE# p_XOR4 = ( always_false ^ always_false ) #NEWLINE# assert ( not p_XOR4 ( ) ) #NEWLINE# assert ( p_XOR4 . name == '(always_false ^ always_false)' )