Module Import alias ImportFrom alias identifier ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Call NameLoad Num Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num Call NameLoad Num Call NameLoad Num Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Call NameLoad Num Call NameLoad Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Call NameLoad Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Call NameLoad Num Call NameLoad Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad decorator_list decorator_list
N/A N/A mock neutron.agent.l3 item_allocator ia neutron.tests base TestObject N/A object N/A __init__ N/A N/A self value N/A N/A N/A N/A N/A N/A super TestObject self __init__ N/A N/A self _value value N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self _value N/A N/A TestItemAllocator N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestItemAllocator self setUp N/A test__init__ N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject s N/A s N/A range 32768 40000 N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write write N/A N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A test_object N/A N/A a allocate test N/A N/A N/A self assertIn test N/A a allocations N/A N/A N/A self assertIn test_object N/A N/A N/A a allocations values N/A N/A N/A self assertNotIn test_object N/A a pool N/A N/A N/A self assertTrue N/A write called N/A test__init__readfile N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject s N/A s N/A range 32768 40000 N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _read read N/A N/A N/A read return_value N/A da873ca2,10
 N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A N/A N/A self assertIn da873ca2 N/A a remembered N/A N/A N/A self assertEqual N/A N/A a allocations N/A test_allocate N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject 33000 N/A TestObject 33001 N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write write N/A N/A test_object N/A N/A a allocate test N/A N/A N/A self assertIn test N/A a allocations N/A N/A N/A self assertIn test_object N/A N/A N/A a allocations values N/A N/A N/A self assertNotIn test_object N/A a pool N/A N/A N/A self assertTrue N/A write called N/A test_allocate_repeated_call_with_same_key N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject 33000 N/A TestObject 33001 N/A TestObject 33002 N/A TestObject 33003 N/A TestObject 33004 N/A TestObject 33005 N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write N/A N/A test_object N/A N/A a allocate test N/A test_object1 N/A N/A a allocate test N/A test_object2 N/A N/A a allocate test N/A test_object3 N/A N/A a allocate test1 N/A N/A N/A self assertEqual test_object test_object1 N/A N/A N/A self assertEqual test_object1 test_object2 N/A N/A N/A self assertNotEqual test_object test_object3 N/A test_allocate_from_file N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject 33000 N/A TestObject 33001 N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _read read N/A N/A N/A read return_value N/A deadbeef,33000
 N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write write N/A N/A t_obj N/A N/A a allocate deadbeef N/A N/A N/A self assertEqual 33000 N/A t_obj _value N/A N/A N/A self assertIn deadbeef N/A a allocations N/A N/A N/A self assertIn t_obj N/A N/A N/A a allocations values N/A N/A N/A self assertNotIn 33000 N/A a pool N/A N/A N/A self assertFalse N/A write called N/A test_allocate_exhausted_pool N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject 33000 N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _read read N/A N/A N/A read return_value N/A deadbeef,33000
 N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write write N/A N/A allocation N/A N/A a allocate abcdef12 N/A N/A N/A self assertNotIn deadbeef N/A a allocations N/A N/A N/A self assertNotIn allocation N/A a pool N/A N/A N/A self assertTrue N/A write called N/A test_release N/A N/A self N/A N/A N/A test_pool N/A set N/A N/A TestObject 33000 N/A TestObject 33001 N/A N/A N/A N/A mock patch object N/A ia ItemAllocator _write write N/A N/A a N/A N/A ia ItemAllocator /file TestObject test_pool N/A allocation N/A N/A a allocate deadbeef N/A N/A N/A write reset_mock N/A N/A N/A a release deadbeef N/A N/A N/A self assertNotIn deadbeef N/A a allocations N/A N/A N/A self assertIn allocation N/A a pool N/A N/A N/A self assertEqual N/A N/A a allocations N/A N/A N/A write assert_called_once_with N/A N/A N/A