Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Num ListLoad Dict Str Str Str Str Str NameLoad NameLoad Dict Str Str Str Str Str Num ListLoad Dict Str Str Str Str Str NameLoad NameLoad Assign NameStore ListLoad Dict Str Str Str Num ListLoad Dict Str Str Str Str Str Dict Str Str Str Num ListLoad Dict Str Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword ListLoad Dict Str Str Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list 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_serialization jsonutils nova objects nova.tests.unit.objects test_objects N/A FAKE_UUID 79a53d6b-0893-4838-a971-15f4f382e7c2 N/A FAKE_REQUEST_UUID 69b53d6b-0793-4839-c981-f5c4f382e7d2 N/A fake_pci_requests N/A N/A count spec alias_name is_new request_id 2 N/A N/A vendor_id device_id 8086 1502 alias_1 False FAKE_REQUEST_UUID N/A count spec alias_name is_new request_id 2 N/A N/A vendor_id device_id 6502 07B5 alias_2 True FAKE_REQUEST_UUID N/A fake_legacy_pci_requests N/A N/A count spec alias_name 2 N/A N/A vendor_id device_id 8086 1502 alias_1 N/A count spec alias_name 1 N/A N/A vendor_id device_id 6502 07B5 alias_2 _TestInstancePCIRequests N/A object N/A test_get_by_instance_uuid N/A N/A self mock_get N/A N/A N/A N/A mock_get return_value N/A instance_uuid pci_requests FAKE_UUID N/A N/A jsonutils dumps fake_pci_requests N/A requests N/A N/A N/A objects InstancePCIRequests get_by_instance_uuid N/A self context FAKE_UUID N/A N/A N/A self assertEqual 2 N/A len N/A requests requests N/A N/A index request N/A enumerate N/A requests requests N/A N/A N/A N/A self assertEqual N/A N/A fake_pci_requests N/A index N/A alias_name N/A request alias_name N/A N/A N/A self assertEqual N/A N/A fake_pci_requests N/A index N/A count N/A request count N/A N/A N/A self assertEqual N/A N/A fake_pci_requests N/A index N/A spec N/A N/A dict N/A N/A x items N/A x N/A request spec N/A N/A N/A mock patch nova.db.instance_extra_get_by_instance_uuid test_get_by_instance_uuid_and_newness N/A N/A self mock_get N/A N/A N/A pcir N/A objects InstancePCIRequests N/A N/A mock_get return_value N/A N/A objects InstancePCIRequests instance_uuid fake-uuid requests N/A N/A N/A objects InstancePCIRequest count 1 is_new False N/A N/A objects InstancePCIRequest count 2 is_new True N/A old_req N/A N/A pcir get_by_instance_uuid_and_newness N/A self context fake-uuid False N/A N/A mock_get return_value N/A N/A objects InstancePCIRequests instance_uuid fake-uuid requests N/A N/A N/A objects InstancePCIRequest count 1 is_new False N/A N/A objects InstancePCIRequest count 2 is_new True N/A new_req N/A N/A pcir get_by_instance_uuid_and_newness N/A self context fake-uuid True N/A N/A N/A self assertEqual 1 N/A N/A N/A old_req requests N/A 0 count N/A N/A N/A self assertEqual 2 N/A N/A N/A new_req requests N/A 0 count N/A N/A N/A mock patch nova.objects.InstancePCIRequests.get_by_instance_uuid test_get_by_instance_current N/A N/A self mock_get N/A N/A N/A instance N/A N/A objects Instance uuid fake-uuid system_metadata N/A N/A N/A N/A N/A objects InstancePCIRequests get_by_instance N/A self context instance N/A N/A N/A mock_get assert_called_once_with N/A self context fake-uuid N/A N/A N/A mock patch nova.objects.InstancePCIRequests.get_by_instance_uuid test_get_by_instance_legacy N/A N/A self N/A N/A N/A fakesysmeta N/A pci_requests new_pci_requests N/A N/A jsonutils dumps N/A N/A fake_legacy_pci_requests N/A 0 N/A N/A jsonutils dumps N/A N/A fake_legacy_pci_requests N/A 1 N/A instance N/A N/A objects Instance uuid fake-uuid system_metadata fakesysmeta N/A requests N/A N/A N/A objects InstancePCIRequests get_by_instance N/A self context instance N/A N/A N/A self assertEqual 2 N/A len N/A requests requests N/A N/A N/A self assertEqual alias_1 N/A N/A N/A requests requests N/A 0 alias_name N/A N/A N/A self assertFalse N/A N/A N/A requests requests N/A 0 is_new N/A N/A N/A self assertEqual alias_2 N/A N/A N/A requests requests N/A 1 alias_name N/A N/A N/A self assertTrue N/A N/A N/A requests requests N/A 1 is_new N/A test_new_compatibility N/A N/A self N/A N/A N/A request N/A N/A objects InstancePCIRequest is_new False N/A N/A N/A self assertFalse N/A request new N/A test_backport_1_0 N/A N/A self N/A N/A N/A requests N/A N/A objects InstancePCIRequests requests N/A N/A N/A objects InstancePCIRequest count 1 request_id FAKE_UUID N/A N/A objects InstancePCIRequest count 2 request_id FAKE_UUID N/A primitive N/A N/A requests obj_to_primitive target_version 1.0 N/A backported N/A N/A N/A objects InstancePCIRequests obj_from_primitive primitive N/A N/A N/A self assertEqual 1.0 N/A backported VERSION N/A N/A N/A self assertEqual 2 N/A len N/A backported requests N/A N/A N/A self assertFalse N/A N/A N/A N/A backported requests N/A 0 obj_attr_is_set request_id N/A N/A N/A self assertFalse N/A N/A N/A N/A backported requests N/A 1 obj_attr_is_set request_id N/A test_obj_from_db N/A N/A self N/A N/A N/A req N/A N/A N/A objects InstancePCIRequests obj_from_db None FAKE_UUID None N/A N/A N/A self assertEqual FAKE_UUID N/A req instance_uuid N/A N/A N/A self assertEqual 0 N/A len N/A req requests N/A db_req N/A N/A jsonutils dumps fake_pci_requests N/A req N/A N/A N/A objects InstancePCIRequests obj_from_db None FAKE_UUID db_req N/A N/A N/A self assertEqual FAKE_UUID N/A req instance_uuid N/A N/A N/A self assertEqual 2 N/A len N/A req requests N/A N/A N/A self assertEqual alias_1 N/A N/A N/A req requests N/A 0 alias_name N/A test_from_request_spec_instance_props N/A N/A self N/A N/A N/A requests N/A N/A objects InstancePCIRequests requests N/A N/A N/A objects InstancePCIRequest count 1 request_id FAKE_UUID spec N/A N/A vendor_id device_id 8086 1502 instance_uuid FAKE_UUID N/A result N/A N/A jsonutils to_primitive requests N/A result N/A N/A N/A objects InstancePCIRequests from_request_spec_instance_props result N/A N/A N/A self assertEqual 1 N/A len N/A result requests N/A N/A N/A self assertEqual 1 N/A N/A N/A result requests N/A 0 count N/A N/A N/A self assertEqual FAKE_UUID N/A N/A N/A result requests N/A 0 request_id N/A N/A N/A self assertEqual N/A N/A vendor_id device_id 8086 1502 N/A N/A N/A result requests N/A 0 spec N/A N/A TestInstancePCIRequests N/A N/A test_objects _LocalTest _TestInstancePCIRequests N/A N/A N/A TestRemoteInstancePCIRequests N/A N/A test_objects _RemoteTest _TestInstancePCIRequests N/A N/A N/A