

@unpack
@data((None, 100), (10, 10), (10, 100))
def test_should_pass_when_position_in_rack_is_correct(self, position, rack_max_height):
    self.dc_asset.position = position
    self.dc_asset.rack = RackFactory(max_u_height=rack_max_height)
    self.dc_asset._validate_position_in_rack()

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py DataCenterAssetTest.test_should_pass_when_position_in_rack_is_correct/original