#NEWLINE# def test_observble_init( self ) : #NEWLINE# #INDENT# obj = Object ( ) #NEWLINE# dobj = ObjectProperties ( ) #NEWLINE# a = Address ( ) #NEWLINE# oc = ObservableComposition ( ) #NEWLINE# e = Event ( ) #NEWLINE# obs1 = Observable ( obj ) #NEWLINE# self . assertTrue ( ( obs1 . object_ is obj ) ) #NEWLINE# self . assertFalse ( obs1 . observable_composition ) #NEWLINE# self . assertFalse ( obs1 . event ) #NEWLINE# obs2 = Observable ( dobj ) #NEWLINE# self . assertTrue ( obs2 . object_ ) #NEWLINE# self . assertTrue ( ( obs2 . object_ . properties is dobj ) ) #NEWLINE# self . assertFalse ( obs2 . observable_composition ) #NEWLINE# self . assertFalse ( obs2 . event ) #NEWLINE# obs3 = Observable ( a ) #NEWLINE# self . assertTrue ( obs3 . object_ ) #NEWLINE# self . assertTrue ( ( obs3 . object_ . properties is a ) ) #NEWLINE# self . assertFalse ( obs3 . event ) #NEWLINE# self . assertFalse ( obs3 . observable_composition ) #NEWLINE# obs4 = Observable ( oc ) #NEWLINE# self . assertFalse ( obs4 . object_ ) #NEWLINE# self . assertFalse ( obs4 . event ) #NEWLINE# self . assertTrue ( ( obs4 . observable_composition is oc ) ) #NEWLINE# obs5 = Observable ( e ) #NEWLINE# self . assertFalse ( obs5 . object_ ) #NEWLINE# self . assertTrue ( ( obs5 . event is e ) ) #NEWLINE# self . assertFalse ( obs5 . observable_composition )