changeset 668:f92a2036fb96

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2024 10:55:29 +0200
parents 44405af8cfc5
children 36c00333f6ef
files Tests/Tests.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Fri Jul 12 10:16:28 2024 +0200
+++ b/Tests/Tests.py	Fri Jul 12 10:55:29 2024 +0200
@@ -1493,6 +1493,12 @@
         self.assertTrue('Test Patient BG ' in patientNames)
         self.assertTrue('Anonymized' in patientNames)
 
+        i = CallFindScu([ '-k', '0008,0052=PATIENT', '-k', '0010,0010=*' ])
+        patientNames = re.findall('\(0010,0010\).*?\[(.*?)\]', i)
+        self.assertEqual(2, len(patientNames))
+        self.assertTrue('Test Patient BG ' in patientNames)
+        self.assertTrue('Anonymized' in patientNames)
+
         i = CallFindScu([ '-k', '0008,0052=SERIES', '-k', '0008,0021' ])
         series = re.findall('\(0008,0021\).*?\[\s*(.*?)\s*\]', i)
         self.assertEqual(2, len(series))