#NEWLINE# def test_can_push_node( self ) : #NEWLINE# #INDENT# alice_1 = Node ( 'Person' , name = 'Alice' ) #NEWLINE# alice_2 = Node ( ) #NEWLINE# self . graph . create ( alice_2 ) #NEWLINE# assert ( set ( alice_2 . labels ( ) ) == set ( ) ) #NEWLINE# assert ( dict ( alice_2 ) == { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# alice_1 . __remote__ = RemoteEntity ( remote ( alice_2 ) . uri ) #NEWLINE# alice_1 . push ( ) #NEWLINE# alice_2 . pull ( ) #NEWLINE# assert ( set ( alice_1 . labels ( ) ) == set ( alice_2 . labels ( ) ) ) #NEWLINE# assert ( dict ( alice_1 ) == dict ( self ) )