Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Num Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore ListLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list decorator_list
N/A N/A datetime N/A mock testtools.matchers HasLength ironic.common exception ironic objects ironic.tests.unit.db base ironic.tests.unit.db utils TestPortgroupObject N/A N/A base DbTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestPortgroupObject self setUp N/A N/A self fake_portgroup N/A N/A utils get_test_portgroup N/A test_get_by_id N/A N/A self N/A N/A N/A portgroup_id N/A N/A self fake_portgroup N/A id N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_id autospec True mock_get_portgroup N/A N/A N/A mock_get_portgroup return_value N/A self fake_portgroup N/A portgroup N/A N/A N/A objects Portgroup get N/A self context portgroup_id N/A N/A N/A mock_get_portgroup assert_called_once_with portgroup_id N/A N/A N/A self assertEqual N/A self context N/A portgroup _context N/A test_get_by_uuid N/A N/A self N/A N/A N/A uuid N/A N/A self fake_portgroup N/A uuid N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_uuid autospec True mock_get_portgroup N/A N/A N/A mock_get_portgroup return_value N/A self fake_portgroup N/A portgroup N/A N/A N/A objects Portgroup get N/A self context uuid N/A N/A N/A mock_get_portgroup assert_called_once_with uuid N/A N/A N/A self assertEqual N/A self context N/A portgroup _context N/A test_get_by_address N/A N/A self N/A N/A N/A address N/A N/A self fake_portgroup N/A address N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_address autospec True mock_get_portgroup N/A N/A N/A mock_get_portgroup return_value N/A self fake_portgroup N/A portgroup N/A N/A N/A objects Portgroup get N/A self context address N/A N/A N/A mock_get_portgroup assert_called_once_with address N/A N/A N/A self assertEqual N/A self context N/A portgroup _context N/A test_get_by_name N/A N/A self N/A N/A N/A name N/A N/A self fake_portgroup N/A name N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_name autospec True mock_get_portgroup N/A N/A N/A mock_get_portgroup return_value N/A self fake_portgroup N/A portgroup N/A N/A N/A objects Portgroup get N/A self context name N/A N/A N/A mock_get_portgroup assert_called_once_with name N/A N/A N/A self assertEqual N/A self context N/A portgroup _context N/A test_get_bad_id_and_uuid_and_address_and_name N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception InvalidIdentity N/A N/A objects Portgroup get N/A self context not:a_name_or_uuid N/A test_save N/A N/A self N/A N/A N/A uuid N/A N/A self fake_portgroup N/A uuid N/A address b2:54:00:cf:2d:40 N/A test_time N/A N/A datetime datetime 2000 1 1 0 0 N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_uuid autospec True mock_get_portgroup N/A N/A N/A mock_get_portgroup return_value N/A self fake_portgroup N/A N/A N/A N/A mock patch object N/A self dbapi update_portgroup autospec True mock_update_portgroup N/A N/A N/A mock_update_portgroup return_value N/A N/A utils get_test_portgroup address address updated_at test_time N/A p N/A N/A N/A objects Portgroup get_by_uuid N/A self context uuid N/A N/A p address address N/A N/A N/A p save N/A N/A N/A mock_get_portgroup assert_called_once_with uuid N/A N/A N/A mock_update_portgroup assert_called_once_with uuid N/A address b2:54:00:cf:2d:40 N/A N/A N/A self assertEqual N/A self context N/A p _context N/A res_updated_at N/A N/A N/A p updated_at replace tzinfo None N/A N/A N/A self assertEqual test_time res_updated_at N/A test_refresh N/A N/A self N/A N/A N/A uuid N/A N/A self fake_portgroup N/A uuid N/A returns N/A N/A self fake_portgroup N/A N/A utils get_test_portgroup address c3:54:00:cf:2d:40 N/A expected N/A N/A N/A mock call uuid N/A N/A mock call uuid N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_by_uuid side_effect returns autospec True mock_get_portgroup N/A N/A p N/A N/A N/A objects Portgroup get_by_uuid N/A self context uuid N/A N/A N/A self assertEqual 52:54:00:cf:2d:31 N/A p address N/A N/A N/A p refresh N/A N/A N/A self assertEqual c3:54:00:cf:2d:40 N/A p address N/A N/A N/A self assertEqual expected N/A mock_get_portgroup call_args_list N/A N/A N/A self assertEqual N/A self context N/A p _context N/A test_list N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroup_list autospec True mock_get_list N/A N/A N/A mock_get_list return_value N/A N/A self fake_portgroup N/A portgroups N/A N/A N/A objects Portgroup list N/A self context N/A N/A N/A self assertThat portgroups N/A HasLength 1 N/A N/A N/A self assertIsInstance N/A portgroups N/A 0 N/A objects Portgroup N/A N/A N/A self assertEqual N/A self context N/A N/A portgroups N/A 0 _context N/A test_list_by_node_id N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self dbapi get_portgroups_by_node_id autospec True mock_get_list N/A N/A N/A mock_get_list return_value N/A N/A self fake_portgroup N/A node_id N/A N/A self fake_portgroup N/A node_id N/A portgroups N/A N/A N/A objects Portgroup list_by_node_id N/A self context node_id N/A N/A N/A self assertThat portgroups N/A HasLength 1 N/A N/A N/A self assertIsInstance N/A portgroups N/A 0 N/A objects Portgroup N/A N/A N/A self assertEqual N/A self context N/A N/A portgroups N/A 0 _context N/A N/A