Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Num Num Str Str Str Str NameLoad NameLoad Num Num Num Num NameLoad Num Num Num Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Num Num Num Str Str Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Num Num Num Str Str Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Pass decorator_list
N/A N/A mock oslo_utils timeutils nova objects nova.tests.unit.objects test_objects N/A NOW N/A N/A N/A N/A timeutils utcnow replace microsecond 0 N/A fake_vol_usage N/A created_at updated_at deleted_at deleted id volume_id instance_uuid project_id user_id availability_zone tot_last_refreshed tot_reads tot_read_bytes tot_writes tot_write_bytes curr_last_refreshed curr_reads curr_read_bytes curr_writes curr_write_bytes NOW None None 0 1 fake-vol-id fake-inst-uuid fake-project-id fake-user-id None None 0 0 0 0 NOW 10 20 30 40 _TestVolumeUsage N/A object N/A test_save N/A N/A self mock_upd N/A N/A N/A vol_usage N/A N/A objects VolumeUsage N/A self context N/A N/A vol_usage volume_id fake-vol-id N/A N/A vol_usage instance_uuid fake-inst-uuid N/A N/A vol_usage project_id fake-project-id N/A N/A vol_usage user_id fake-user-id N/A N/A vol_usage availability_zone None N/A N/A vol_usage curr_reads 10 N/A N/A vol_usage curr_read_bytes 20 N/A N/A vol_usage curr_writes 30 N/A N/A vol_usage curr_write_bytes 40 N/A N/A N/A vol_usage save N/A N/A N/A mock_upd assert_called_once_with N/A self context fake-vol-id 10 20 30 40 fake-inst-uuid fake-project-id fake-user-id None update_totals False N/A N/A N/A self compare_obj vol_usage fake_vol_usage N/A N/A N/A mock patch nova.db.vol_usage_update return_value fake_vol_usage test_save_update_totals N/A N/A self mock_upd N/A N/A N/A vol_usage N/A N/A objects VolumeUsage N/A self context N/A N/A vol_usage volume_id fake-vol-id N/A N/A vol_usage instance_uuid fake-inst-uuid N/A N/A vol_usage project_id fake-project-id N/A N/A vol_usage user_id fake-user-id N/A N/A vol_usage availability_zone None N/A N/A vol_usage curr_reads 10 N/A N/A vol_usage curr_read_bytes 20 N/A N/A vol_usage curr_writes 30 N/A N/A vol_usage curr_write_bytes 40 N/A N/A N/A vol_usage save update_totals True N/A N/A N/A mock_upd assert_called_once_with N/A self context fake-vol-id 10 20 30 40 fake-inst-uuid fake-project-id fake-user-id None update_totals True N/A N/A N/A self compare_obj vol_usage fake_vol_usage N/A N/A N/A mock patch nova.db.vol_usage_update return_value fake_vol_usage N/A TestVolumeUsage N/A N/A test_objects _LocalTest _TestVolumeUsage N/A N/A N/A TestRemoteVolumeUsage N/A N/A test_objects _RemoteTest _TestVolumeUsage N/A N/A N/A