

def test_get_free_u_for_none_position(self):
    rack = RackFactory(max_u_height=47)
    asset_kwargs = {
        'rack': self,
        'model__height_of_device': 47,
        'position': None,
        'slot_no': None,
        'orientation': Orientation.front.id,
    }
    DataCenterAssetFactory(**asset_kwargs)
    self.assertEqual(rack.get_free_u(), 47)

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py RackTest.test_get_free_u_for_none_position/VarMisuse@25/42 `rack`->`self`