#NEWLINE# def test_proxy_zero( self ) : #NEWLINE# #INDENT# validator = mock . Mock ( return_value = 0 ) #NEWLINE# self . value_proxy = proxy . ValueProxy ( validator , self . value_cache , 'zero' ) #NEWLINE# assert_equal ( validator . value_proxy , 0 ) #NEWLINE# assert ( not self . value_proxy ) #NEWLINE# assert ( ( not self . value_proxy ) and True ) #NEWLINE# assert ( ( not self . value_proxy ) or False ) #NEWLINE# assert ( not ( self . value_proxy ^ 0 ) ) #NEWLINE# assert ( ~ self . value_proxy )