#NEWLINE# def test_update( data_client ) : #NEWLINE# #INDENT# elasticsearch_repo = Repository . get ( 'elasticsearch-dsl-py' ) #NEWLINE# v = elasticsearch_repo . meta . version #NEWLINE# elasticsearch_repo . update ( owner = { #NEWLINE# #INDENT# 'new_name' : 'elastic' , #NEWLINE# #UNINDENT# } , new_field = 'testing-update' ) #NEWLINE# assert ( 'elastic' == elasticsearch_repo . owner . new_name ) #NEWLINE# assert ( 'testing-update' == elasticsearch_repo . new_field ) #NEWLINE# assert ( elasticsearch_repo . meta . version == ( v + 1 ) ) #NEWLINE# new_version = Repository . get ( 'elasticsearch-dsl-py' ) #NEWLINE# assert ( 'testing-update' == new_version . new_field ) #NEWLINE# assert ( 'elastic' == new_version . owner . new_name ) #NEWLINE# assert ( 'elasticsearch' == new_version . owner . name )