

@unpack
@data((0, Orientation.front), (0, Orientation.back), (0, Orientation.middle), (1, Orientation.left), (10, Orientation.right))
def test_should_raise_validation_error_when_orientation_is_correct(self, position, orientation):
    self.dc_asset.position = position
    self.dc_asset.orientation = orientation
    with position.assertRaises(ValidationError):
        self.dc_asset._validate_orientation()

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py DataCenterAssetTest.test_should_raise_validation_error_when_orientation_is_correct/VarMisuse@78/90 `self`->`position`