def test_change_datatype_subcomponent_strict(self): s = SubComponent (datatype='ST', validation_level=VALIDATION_LEVEL.STRICT) with self.assertRaises(OperationNotAllowed): s.datatype = 'TX'
def test_assign_not_allowed_datatype_to_subcomponent(self): a = SubComponent('HD_1') with self.assertRaises(OperationNotAllowed): a.datatype = 'CX'
def test_change_datatype_for_valued_subcomponent(self): a = SubComponent('HD_1', value='value') with self.assertRaises(OperationNotAllowed): a.datatype = 'ST'