# HG changeset patch # User Alain Mazy # Date 1708420563 -3600 # Node ID 9c295b8dac00d4100021986949fa8f674464ed3e # Parent 78314ab6fc6738c3f3050d93b45857aa4d9a0549 C-find group length diff -r 78314ab6fc67 -r 9c295b8dac00 Tests/Tests.py --- 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))