#NEWLINE# def test_can_create_multiple_relationships( self ) : #NEWLINE# #INDENT# self . batch . create ( { #NEWLINE# #INDENT# 'name' : 'Alice' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . batch . create ( { #NEWLINE# #INDENT# 'name' : 'Bob' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . batch . create ( { #NEWLINE# #INDENT# 'name' : 'Carol' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . batch . create ( ( 0 , 'KNOWS' , 1 ) ) #NEWLINE# self . batch . create ( ( 1 , 'KNOWS' , 2 ) ) #NEWLINE# self . batch . create ( ( 2 , 'KNOWS' , 0 ) ) #NEWLINE# ( alice , bob , carol , ab , bc , ca ) = self . batch . run ( ) #NEWLINE# for relationship in [ ab , bc , relationship ] : #NEWLINE# #INDENT# assert isinstance ( relationship , Relationship ) #NEWLINE# assert ( relationship . type ( ) == 'KNOWS' )