def stub_out_registry_image_update(stubs):
 test_stubs.stub_out_registry_server(stubs)
 def fake_image_update(ctx, image_id, values, purge_props=False):
  return {'properties': {}}
 stubs.Set(db_api, 'image_update', fake_image_update)

def stub_out_registry_image_update ( stubs ) : test_stubs . stub_out_registry_server ( stubs ) def fake_image_update ( ctx , image_id , values , purge_props = False ) : return { 'properties' : { } } stubs . Set ( db_api , 'image_update' , fake_image_update )
stubs an image update on the registry .