Ejemplo n.º 1
0
 def test_change_datatype_subcomponent_strict(self):
     s = SubComponent (datatype='ST', validation_level=VALIDATION_LEVEL.STRICT)
     with self.assertRaises(OperationNotAllowed):
         s.datatype = 'TX'
Ejemplo n.º 2
0
 def test_assign_not_allowed_datatype_to_subcomponent(self):
     a = SubComponent('HD_1')
     with self.assertRaises(OperationNotAllowed):
         a.datatype = 'CX'
Ejemplo n.º 3
0
 def test_change_datatype_for_valued_subcomponent(self):
     a = SubComponent('HD_1', value='value')
     with self.assertRaises(OperationNotAllowed):
         a.datatype = 'ST'