#NEWLINE# def test_can_push_relationship( self ) : #NEWLINE# #INDENT# a = Node ( ) #NEWLINE# b = Node ( ) #NEWLINE# ab = Relationship ( a , 'KNOWS' , b ) #NEWLINE# self . graph . create ( ab ) #NEWLINE# value = self . graph . evaluate ( 'MATCH ()-[ab:KNOWS]->() WHERE id(ab)={i} RETURN ab.since' , i = remote ( ab ) . _id ) #NEWLINE# assert ( value is None ) #NEWLINE# ab [ 'since' ] = 1999 #NEWLINE# ab . push ( ) #NEWLINE# value = self . graph . evaluate ( 'MATCH ()-[ab:KNOWS]->() WHERE id(ab)={i} RETURN ab.since' , i = remote ( ab ) . _id ) #NEWLINE# assert ( value == 1999 )