#NEWLINE# def test_update_vertex( self ) : #NEWLINE# #INDENT# ( name1 , age1 ) = ( 'James' , 34 ) #NEWLINE# data1 = dict ( name = name1 , age = age1 ) #NEWLINE# resp1 = self . client . create_vertex ( data1 ) #NEWLINE# ( name2 , age2 ) = ( 'Julie' , 28 ) #NEWLINE# data2 = dict ( name = name2 , age = age2 ) #NEWLINE# resp2 = self . client . update_vertex ( resp1 . results . get_id ( ) , data2 ) #NEWLINE# resp3 = self . client . get_vertex ( resp1 . results . get_id ( ) ) #NEWLINE# assert ( resp3 . results . get_type ( ) == 'vertex' ) #NEWLINE# assert ( resp3 . results . data . get ( 'name' ) == name2 ) #NEWLINE# assert ( resp3 . results . data . get ( 'age' ) == age2 )