

@unpack
@data((10, 9), (1, 0), ((- 1), 10))
def test_should_raise_validation_error_when_position_in_rack_is_incorrect(self, position, rack_max_height):
    position.dc_asset.position = position
    self.dc_asset.rack = RackFactory(max_u_height=rack_max_height)
    with self.assertRaises(ValidationError):
        self.dc_asset._validate_position_in_rack()

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py DataCenterAssetTest.test_should_raise_validation_error_when_position_in_rack_is_incorrect/VarMisuse@42/59 `self`->`position`