<s> '''<STR_LIT>''' <EOL> import uuid <EOL> from python_toolbox import cute_testing <EOL> from python_toolbox . misc_tools import ProxyProperty <EOL> class Object ( object ) : <EOL> pass <EOL> def test ( ) : <EOL> class A ( object ) : <EOL> y = '<STR_LIT:y>' <EOL> def __init__ ( self ) : <EOL> self . x = '<STR_LIT:x>' <EOL> self . obj = Object ( ) <EOL> self . obj . z = '<STR_LIT:z>' <EOL> self . uuid = uuid . uuid4 ( ) <EOL> x_proxy = ProxyProperty ( '<STR_LIT>' ) <EOL> y_proxy = ProxyProperty ( <EOL> '<STR_LIT>' , <EOL> doc = '<STR_LIT>' <EOL> ) <EOL> z_proxy = ProxyProperty ( '<STR_LIT>' , doc = '<STR_LIT>' ) <EOL> uuid_proxy = ProxyProperty ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ) <EOL> nonexistant_proxy = ProxyProperty ( '<STR_LIT>' ) <EOL> assert isinstance ( A . x_proxy , ProxyProperty ) <EOL> assert isinstance ( A . y_proxy , ProxyProperty ) <EOL> assert isinstance ( A . z_proxy , ProxyProperty ) <EOL> assert isinstance ( A . uuid_proxy , ProxyProperty ) <EOL> assert isinstance ( A . nonexistant_proxy , ProxyProperty ) <EOL> a0 = A ( ) <EOL> a1 = A ( ) <EOL> assert a0 . x_proxy == a1 . x_proxy == '<STR_LIT:x>' <EOL> assert a0 . y_proxy == a1 . y_proxy == '<STR_LIT:y>' <EOL> assert a0 . z_proxy == a1 . z_proxy == '<STR_LIT:z>' <EOL> assert isinstance ( a0 . uuid_proxy , uuid . UUID ) <EOL> assert isinstance ( a1 . uuid_proxy , uuid . UUID ) <EOL> assert a0 . uuid == a0 . uuid_proxy != a1 . uuid_proxy == a1 . uuid <EOL> with cute_testing . RaiseAssertor ( AttributeError ) : <EOL> a0 . nonexistant_proxy <EOL> with cute_testing . RaiseAssertor ( AttributeError ) : <EOL> a1 . nonexistant_proxy <EOL> a0 . x_proxy = <NUM_LIT:7> <EOL> assert a0 . x_proxy == <NUM_LIT:7> != a1 . x_proxy == '<STR_LIT:x>' <EOL> a0 . y_proxy = '<STR_LIT>' <EOL> assert a0 . y_proxy == '<STR_LIT>' != a1 . y_proxy == '<STR_LIT:y>' <EOL> a0 . z_proxy = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] <EOL> assert a0 . z_proxy == [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] != a1 . z_proxy == '<STR_LIT:z>' <EOL> assert repr ( A . x_proxy ) == '''<STR_LIT>''' <EOL> assert repr ( A . z_proxy ) == ( '''<STR_LIT>''' <EOL> '''<STR_LIT>''' ) <EOL> def test_dot ( ) : <EOL> '''<STR_LIT>''' <EOL> with cute_testing . RaiseAssertor ( text = "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) : <EOL> class A ( object ) : <EOL> y = '<STR_LIT:y>' <EOL> x = ProxyProperty ( '<STR_LIT:y>' ) </s>
