#NEWLINE# @ skipIf ( version_2_1 , 'this test highlights a server bug in 2.1' ) #NEWLINE# def test_can_create_relationship_and_end_node( self ) : #NEWLINE# #INDENT# self . batch . create ( { #NEWLINE# #INDENT# 'name' : 'Alice' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( alice , ) = self . batch . run ( ) #NEWLINE# self . batch . jobs = [ ] #NEWLINE# self . batch . get_or_create_path ( alice , 'KNOWS' , None ) #NEWLINE# ( path , ) = self . batch . run ( ) #NEWLINE# knows = path [ 0 ] #NEWLINE# bob = knows . end_node ( ) #NEWLINE# assert isinstance ( knows , Relationship ) #NEWLINE# assert ( knows . start_node ( ) == alice ) #NEWLINE# assert ( knows . type ( ) == 'KNOWS' ) #NEWLINE# assert isinstance ( bob , Node ) #NEWLINE# self . recycling = [ knows , path , bob ]