#NEWLINE# def test_service_update( self ) : #NEWLINE# #INDENT# service = self . _create_service ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# new_values = { #NEWLINE# #INDENT# 'host' : 'fake_host1' , #NEWLINE# 'binary' : 'fake_binary1' , #NEWLINE# 'topic' : 'fake_topic1' , #NEWLINE# 'report_count' : 4 , #NEWLINE# 'disabled' : True , #NEWLINE# #UNINDENT# } #NEWLINE# db . service_update ( self . ctxt , service [ 'id' ] , updated_service ) #NEWLINE# updated_service = db . service_get ( self . ctxt , service [ 'id' ] ) #NEWLINE# for ( key , value ) in new_values . iteritems ( ) : #NEWLINE# #INDENT# self . assertEqual ( value , updated_service [ key ] )