Mercurial > hg > orthanc-tests
changeset 626:9c295b8dac00
C-find group length
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 20 Feb 2024 10:16:03 +0100 |
parents | 78314ab6fc67 |
children | 76c9923050b5 |
files | Tests/Tests.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Thu Feb 15 16:24:59 2024 +0100 +++ b/Tests/Tests.py Tue Feb 20 10:16:03 2024 +0100 @@ -10140,3 +10140,12 @@ self.assertEqual(1, len(modifiedPatient["Labels"])) self.assertIn('label-patient', modifiedPatient["Labels"]) + def test_findscu_group_length(self): + UploadInstance(_REMOTE, 'Comunix/Ct/IM-0001-0001.dcm') + UploadInstance(_REMOTE, 'Comunix/Pet/IM-0001-0001.dcm') + UploadInstance(_REMOTE, 'Comunix/Pet/IM-0001-0002.dcm') + + i = CallFindScu([ '-k', '0008,0052=PATIENT', '-k', '0008,0000=22' ]) # GE like C-Find that includes group-length + # print(i) + s = re.findall('\(0008,0000\).*?\[(.*?)\]', i) + self.assertEqual(0, len(s))