changeset 56:1059b8de42de

ModalitiesInStudy subtest
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Oct 2015 13:00:15 +0100
parents a395fd51cc4f
children 784a544706cf
files Tests/Tests.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Oct 21 16:11:43 2015 +0200
+++ b/Tests/Tests.py	Wed Oct 28 13:00:15 2015 +0100
@@ -1036,6 +1036,11 @@
         self.assertTrue('20070208' in series)
         self.assertTrue('19980312' in series)
         
+        i = CallFindScu([ '-k', '0008,0052=SERIES', '-k', '0008,0021', '-k', 'ModalitiesInStudy=MR\\XA' ])
+        series = re.findall('\(0008,0021\).*?\[\s*(.*?)\s*\]', i)
+        self.assertEqual(1, len(series))
+        self.assertTrue('19980312' in series)
+        
         i = CallFindScu([ '-k', '0008,0052=SERIES', '-k', 'PatientName=Anonymized' ])
         series = re.findall('\(0010,0010\).*?\[\s*(.*?)\s*\]', i)
         self.assertEqual(1, len(series))