

def test_should_raise_validation_error_when_empty_slot_no_on_blade(self):
    dc_asset = DataCenterAssetFactory(model__has_parent=True)
    dc_asset.slot_no = ''
    with dc_asset.assertRaises(ValidationError):
        dc_asset._validate_slot_no()

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py DataCenterAssetTest.test_should_raise_validation_error_when_empty_slot_no_on_blade/VarMisuse@26/49 `self`->`dc_asset`