#NEWLINE# def test_create_unique_vertex( self ) : #NEWLINE# #INDENT# idx_name = 'test_idx' #NEWLINE# self . _delete_vertex_index ( idx_name ) #NEWLINE# self . client . create_vertex_index ( idx_name ) #NEWLINE# ( k , v ) = ( 'key' , uuid1 ( ) . get_hex ( ) ) #NEWLINE# args = ( k , v , { #NEWLINE# #INDENT# k : v , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp = self . client . create_unique_vertex ( idx_name , * args ) #NEWLINE# assert ( resp . headers [ 'status' ] == '201' ) #NEWLINE# assert ( resp . results . data . get ( k ) == args ) #NEWLINE# resp = self . client . create_unique_vertex ( idx_name , * args ) #NEWLINE# assert ( resp . headers [ 'status' ] == '200' ) #NEWLINE# assert ( resp . results . data . get ( k ) == v )