コード例 #1
0
ファイル: test_core.py プロジェクト: frostyfrog/hl7apy
 def test_change_datatype_subcomponent_strict(self):
     s = SubComponent (datatype='ST', validation_level=VALIDATION_LEVEL.STRICT)
     with self.assertRaises(OperationNotAllowed):
         s.datatype = 'TX'
コード例 #2
0
ファイル: test_core.py プロジェクト: frostyfrog/hl7apy
 def test_assign_not_allowed_datatype_to_subcomponent(self):
     a = SubComponent('HD_1')
     with self.assertRaises(OperationNotAllowed):
         a.datatype = 'CX'
コード例 #3
0
ファイル: test_core.py プロジェクト: frostyfrog/hl7apy
 def test_change_datatype_for_valued_subcomponent(self):
     a = SubComponent('HD_1', value='value')
     with self.assertRaises(OperationNotAllowed):
         a.datatype = 'ST'