Module ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Num keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Dict Str Str Str Str Num Str Str Str Dict Str Str Str Str Num Str Str Str Dict Str Str Str Str Num Str Str Str Dict Str Str Str Str Num Str Str AttributeLoad NameLoad attr Dict Str Str Str Str Num Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Dict Str Str AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword AttributeLoad Call NameLoad attr keyword AttributeLoad Call NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Index Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Index Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str TupleLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad TupleLoad NameLoad Num TupleLoad Num Num TupleLoad Num Num FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad Call NameLoad TupleLoad Num Num Num Num TupleLoad Num Num Num Num TupleLoad Num Num Num Num TupleLoad Num Num Num Num TupleLoad Num Num Num Num FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num Assign NameStore Dict Str Str Str Str Str NameLoad Num NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num Assign NameStore Dict Str Str Str Str NameLoad Num Num NameLoad Expr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list NameLoad
N/A ddt data ddt unpack django.core.exceptions ValidationError ralph.accounts.tests.factories RegionFactory ralph.back_office.models BackOfficeAsset ralph.back_office.tests.factories WarehouseFactory ralph.data_center.models.choices DataCenterAssetStatus Orientation ralph.data_center.models.networks get_network_tree IPAddress Network ralph.data_center.models.physical DataCenterAsset ralph.data_center.tests.factories DataCenterAssetFactory RackFactory ralph.tests RalphTestCase NetworkTest N/A RalphTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self net1 N/A N/A N/A Network objects create name test1 address 192.168.0.0/16 N/A N/A self net2 N/A N/A N/A Network objects create name test2 address 192.168.0.0/17 N/A N/A self net3 N/A N/A N/A Network objects create name test3 address 192.168.128.0/17 reserved 5 reserved_top_margin 5 N/A N/A self net4 N/A N/A N/A Network objects create name test4 address 192.168.133.0/24 N/A N/A self net5 N/A N/A N/A Network objects create name test5 address 192.169.133.0/24 N/A N/A self ip1 N/A IPAddress address 192.168.128.10 N/A N/A N/A N/A self ip1 save N/A N/A self ip2 N/A IPAddress address 192.168.133.10 N/A N/A N/A N/A self ip2 save N/A N/A self ip3 N/A IPAddress address 192.168.128.11 N/A N/A N/A N/A self ip3 save N/A test_get_netmask N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A self net1 get_netmask 16 N/A N/A N/A self assertEquals N/A N/A N/A self net2 get_netmask 17 N/A test_get_subnetworks N/A N/A self N/A N/A N/A res N/A N/A N/A self net1 get_subnetworks N/A correct N/A N/A self net2 N/A self net3 N/A self net4 N/A N/A N/A self assertEquals res correct N/A res N/A N/A N/A self net3 get_subnetworks N/A correct N/A N/A self net4 N/A N/A N/A self assertEquals res correct N/A test_get_address_summary N/A N/A self N/A N/A N/A ret N/A N/A N/A self net3 get_total_ips N/A N/A N/A self assertEquals ret 32767 N/A ret N/A N/A N/A self net3 get_free_ips N/A N/A N/A self assertEquals ret 32500 N/A ret N/A N/A N/A self net3 get_ip_usage_range N/A correct_range N/A N/A self ip1 N/A self ip3 N/A self net4 N/A N/A N/A self assertEquals ret correct_range N/A test_get_ip_usage_aggregated N/A N/A self N/A N/A N/A ret N/A N/A N/A self net3 get_ip_usage_aggregated N/A correct N/A N/A amount range_end range_start type 10 192.168.128.9 192.168.128.0 free N/A amount range_end range_start type 2 192.168.128.11 192.168.128.10 addr N/A amount range_end range_start type 1268 192.168.132.255 192.168.128.12 free N/A amount range_end range_start type 257 192.168.134.0 192.168.133.0 N/A self net4 N/A amount range_end range_start type 31232 192.169.0.0 192.168.134.1 free N/A N/A N/A self assertEquals ret correct N/A test_get_network_tree N/A N/A self N/A N/A N/A res N/A get_network_tree N/A correct N/A N/A network subnetworks N/A self net1 N/A N/A network subnetworks N/A self net2 N/A N/A network subnetworks N/A self net3 N/A N/A network subnetworks N/A self net4 N/A N/A network subnetworks N/A self net4 N/A N/A network subnetworks N/A self net5 N/A N/A N/A N/A self assertEquals res correct N/A test_ip_is_public_or_no N/A N/A self N/A N/A N/A ip_list N/A N/A 92.143.123.123 True N/A 10.168.123.123 False N/A N/A ip is_public ip_list N/A N/A new_ip_address N/A IPAddress address ip N/A N/A N/A new_ip_address save N/A N/A N/A self assertEquals N/A new_ip_address is_public is_public N/A N/A DataCenterAssetTest N/A RalphTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self dc_asset N/A DataCenterAssetFactory status N/A N/A DataCenterAssetStatus liquidated id N/A N/A self dc_asset_2 N/A DataCenterAssetFactory parent N/A self dc_asset N/A test_convert_to_backoffice_asset N/A N/A self N/A N/A N/A dc_asset N/A DataCenterAssetFactory N/A dc_asset_pk N/A dc_asset pk N/A hostname N/A dc_asset hostname N/A N/A N/A DataCenterAsset convert_to_backoffice_asset instances N/A dc_asset region N/A N/A RegionFactory id warehouse N/A N/A WarehouseFactory id request None N/A bo_asset N/A N/A N/A BackOfficeAsset objects get pk dc_asset_pk N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A DataCenterAsset objects filter pk dc_asset_pk exists N/A N/A N/A self assertEqual N/A bo_asset hostname hostname N/A test_should_pass_when_slot_no_is_correct N/A N/A self slot_no N/A N/A N/A slot_no_field N/A N/A N/A N/A N/A self dc_asset _meta get_field_by_name slot_no N/A 0 N/A N/A N/A slot_no_field clean slot_no N/A self dc_asset N/A unpack N/A data N/A 1A N/A 1B N/A 9A N/A 9B N/A 10A N/A 10B N/A 16A N/A 16B N/A 1 N/A 9 N/A 10 N/A 16 test_should_raise_validation_error_when_slot_no_is_incorrect N/A N/A self slot_no N/A N/A N/A slot_no_field N/A N/A N/A N/A N/A self dc_asset _meta get_field_by_name slot_no N/A 0 N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A slot_no_field clean slot_no N/A self dc_asset N/A unpack N/A data N/A 1C N/A 0A N/A 0 N/A B N/A 17A N/A 17B N/A 20A N/A 1a N/A 1b N/A 111 test_should_raise_validation_error_when_empty_slot_no_on_blade N/A N/A self N/A N/A N/A dc_asset N/A DataCenterAssetFactory model__has_parent True N/A N/A dc_asset slot_no N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A dc_asset _validate_slot_no N/A test_should_raise_validation_error_when_slot_not_filled_when_not_blade N/A N/A self N/A N/A N/A dc_asset N/A DataCenterAssetFactory model__has_parent False N/A N/A dc_asset slot_no 1A N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A dc_asset _validate_slot_no N/A test_should_pass_when_slot_no_filled_on_blade N/A N/A self N/A N/A N/A dc_asset N/A DataCenterAssetFactory model__has_parent True N/A N/A dc_asset slot_no 1A N/A N/A N/A dc_asset _validate_slot_no N/A test_should_pass_when_slot_not_filled_without_model N/A N/A self N/A N/A N/A dc_asset N/A DataCenterAsset N/A N/A dc_asset slot_no 1A N/A N/A N/A dc_asset _validate_slot_no N/A test_should_pass_when_orientation_is_correct N/A N/A self position orientation N/A N/A N/A N/A N/A self dc_asset position position N/A N/A N/A self dc_asset orientation orientation N/A N/A N/A N/A self dc_asset _validate_orientation N/A unpack N/A data N/A None N/A Orientation front N/A None N/A Orientation left N/A 0 N/A Orientation left N/A 0 N/A Orientation right N/A 1 N/A Orientation front N/A 10 N/A Orientation back N/A 100 N/A Orientation middle test_should_raise_validation_error_when_orientation_is_correct N/A N/A self position orientation N/A N/A N/A N/A N/A self dc_asset position position N/A N/A N/A self dc_asset orientation orientation N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A N/A self dc_asset _validate_orientation N/A unpack N/A data N/A 0 N/A Orientation front N/A 0 N/A Orientation back N/A 0 N/A Orientation middle N/A 1 N/A Orientation left N/A 10 N/A Orientation right test_should_pass_when_position_in_rack_is_correct N/A N/A self position rack_max_height N/A N/A N/A N/A N/A self dc_asset position position N/A N/A N/A self dc_asset rack N/A RackFactory max_u_height rack_max_height N/A N/A N/A N/A self dc_asset _validate_position_in_rack N/A unpack N/A data N/A None 100 N/A 10 10 N/A 10 100 test_should_pass_when_rack_is_null N/A N/A self N/A N/A N/A N/A N/A self dc_asset position 10 N/A N/A N/A self dc_asset rack None N/A N/A N/A N/A self dc_asset _validate_position_in_rack N/A test_should_raise_validation_error_when_position_in_rack_is_incorrect N/A N/A self position rack_max_height N/A N/A N/A N/A N/A self dc_asset position position N/A N/A N/A self dc_asset rack N/A RackFactory max_u_height rack_max_height N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A N/A self dc_asset _validate_position_in_rack N/A unpack N/A data N/A 10 9 N/A 1 0 N/A -1 10 test_should_pass_when_position_is_passed_and_rack_requires_it N/A N/A self N/A N/A N/A N/A N/A self dc_asset position 10 N/A N/A N/A self dc_asset rack N/A RackFactory require_position True N/A N/A N/A N/A self dc_asset _validate_position N/A test_should_pass_when_position_is_passed_and_rack_doesnt_require_it N/A N/A self N/A N/A N/A N/A N/A self dc_asset position 10 N/A N/A N/A self dc_asset rack N/A RackFactory require_position False N/A N/A N/A N/A self dc_asset _validate_position N/A test_should_pass_when_position_is_not_passed_and_rack_doesnt_require_it N/A N/A self N/A N/A N/A N/A N/A self dc_asset position None N/A N/A N/A self dc_asset rack N/A RackFactory require_position False N/A N/A N/A N/A self dc_asset _validate_position N/A test_should_raise_validation_error_when_position_is_not_passed_and_rack_requires_it N/A N/A self N/A N/A N/A N/A N/A self dc_asset position None N/A N/A N/A self dc_asset rack N/A RackFactory require_position True N/A N/A N/A self assertRaises ValidationError N/A N/A N/A N/A N/A self dc_asset _validate_position N/A test_change_rack_in_descendants N/A N/A self N/A N/A N/A N/A N/A self dc_asset rack N/A RackFactory N/A N/A N/A N/A self dc_asset save N/A asset N/A N/A N/A DataCenterAsset objects get pk N/A N/A self dc_asset_2 pk N/A N/A N/A self assertEquals N/A N/A self dc_asset rack_id N/A asset rack_id N/A test_get_autocomplete_queryset N/A N/A self N/A N/A N/A queryset N/A N/A DataCenterAsset get_autocomplete_queryset N/A N/A N/A self assertEquals 1 N/A N/A queryset count N/A N/A ddt RackTest N/A RalphTestCase N/A test_get_free_u_in_empty_rack_should_return_max_u_height N/A N/A self N/A N/A N/A rack N/A RackFactory N/A N/A N/A self assertEqual N/A N/A rack get_free_u N/A rack max_u_height N/A test_get_free_u_for_one_asset N/A N/A self position height max_u_height expected N/A N/A N/A rack N/A RackFactory max_u_height max_u_height N/A asset_kwargs N/A rack model__height_of_device position slot_no orientation rack height position None N/A N/A Orientation front id N/A N/A DataCenterAssetFactory asset_kwargs N/A N/A N/A self assertEqual N/A N/A rack get_free_u expected N/A unpack N/A data N/A 1 47 47 0 N/A 1 46 47 1 N/A 2 45 47 2 N/A 47 1 47 46 N/A 47 5 47 46 test_get_free_u_for_none_position N/A N/A self N/A N/A N/A rack N/A RackFactory max_u_height 47 N/A asset_kwargs N/A rack model__height_of_device position slot_no orientation rack 47 None None N/A N/A Orientation front id N/A N/A DataCenterAssetFactory asset_kwargs N/A N/A N/A self assertEqual N/A N/A rack get_free_u 47 N/A test_get_free_u_should_respect_orientation N/A N/A self N/A N/A N/A rack N/A RackFactory max_u_height 48 N/A asset_common_kwargs N/A rack model__height_of_device position slot_no rack 1 35 None N/A N/A DataCenterAssetFactory orientation N/A N/A Orientation front id asset_common_kwargs N/A N/A DataCenterAssetFactory orientation N/A N/A Orientation back id asset_common_kwargs N/A N/A N/A self assertEqual N/A N/A rack get_free_u 47 N/A N/A ddt