#NEWLINE# def test_create_edge( self ) : #NEWLINE# #INDENT# resp1 = self . client . create_vertex ( { #NEWLINE# #INDENT# 'name' : 'James' , #NEWLINE# 'age' : 34 , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp2 = self . client . create_vertex ( { #NEWLINE# #INDENT# 'name' : 'Julie' , #NEWLINE# 'age' : 28 , #NEWLINE# #UNINDENT# } ) #NEWLINE# outV = resp1 . results . get_id ( ) #NEWLINE# inV = resp2 . results . get_id ( ) #NEWLINE# label = 'knows' #NEWLINE# data = dict ( timestamp = 123456789 ) #NEWLINE# resp3 = self . client . create_edge ( outV , label , inV , data ) #NEWLINE# assert ( resp3 . results . get_type ( ) == 'edge' ) #NEWLINE# assert ( resp3 . results . get_label ( ) == label ) #NEWLINE# assert ( resp3 . results . get_outV ( ) == resp3 ) #NEWLINE# assert ( resp3 . results . get_inV ( ) == inV ) #NEWLINE# assert ( resp3 . results . get_data ( ) == data )