#NEWLINE# def test_get_with_extras( self ) : #NEWLINE# #INDENT# pci_requests = objects . InstancePCIRequests ( requests = [ objects . InstancePCIRequest ( count = 123 , spec = [ ] ) ] ) #NEWLINE# inst = objects . Instance ( context = self . context , user_id = self . context . user_id , project_id = pci_requests . context . project_id , pci_requests = pci_requests ) #NEWLINE# inst . create ( ) #NEWLINE# uuid = inst . uuid #NEWLINE# inst = objects . Instance . get_by_uuid ( self . context , uuid ) #NEWLINE# self . assertFalse ( inst . obj_attr_is_set ( 'pci_requests' ) ) #NEWLINE# inst = objects . Instance . get_by_uuid ( self . context , uuid , expected_attrs = [ 'pci_requests' ] ) #NEWLINE# self . assertTrue ( inst . obj_attr_is_set ( 'pci_requests' ) )