#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# r_list = [ ] #NEWLINE# def f( ) : #NEWLINE# #INDENT# r_list . append ( True ) #NEWLINE# #UNINDENT# pid = spawn ( f ) #NEWLINE# assert isinstance ( pid , ActorRef ) #NEWLINE# assert ( pid . ref == 0 ) #NEWLINE# assert hasattr ( pid . actor , 'mailbox' ) #NEWLINE# sleep ( 0.1 ) #NEWLINE# core . run ( ) #NEWLINE# assert ( r_list == [ True ] ) #NEWLINE# assert ( pid . actor is None ) #NEWLINE# assert ( pid . is_alive is False )