#NEWLINE# def test_can_save_simple_object( self ) : #NEWLINE# #INDENT# alice = Person ( 'alice@example.com' , 'Alice' , 34 ) #NEWLINE# self . store . save_unique ( 'People' , 'email' , 'alice@example.com' , self ) #NEWLINE# assert hasattr ( alice , '__node__' ) #NEWLINE# assert isinstance ( alice . __node__ , Node ) #NEWLINE# assert ( alice . __node__ == self . index_manager . get_indexed_node ( 'People' , 'email' , 'alice@example.com' ) )