

@unpack
@data(('1C',), ('0A',), ('0',), ('B',), ('17A',), ('17B',), ('20A',), ('1a',), ('1b',), ('111',))
def test_should_raise_validation_error_when_slot_no_is_incorrect(self, slot_no):
    slot_no_field = self.dc_asset._meta.get_field_by_name('slot_no')[0]
    with self.assertRaises(ValidationError):
        slot_no_field.clean(slot_no, self.dc_asset)

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