changeset 666:acd22dd27e30

extended test_rest_find
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2024 08:00:03 +0200
parents e024ba9e7768
children 44405af8cfc5
files Tests/Tests.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Thu Jul 11 21:29:55 2024 +0200
+++ b/Tests/Tests.py	Fri Jul 12 08:00:03 2024 +0200
@@ -2165,7 +2165,16 @@
                                              'Expand' : True,
                                              'Query' : { 'StudyDate' : '20080820-' }})
         self.assertEqual(0, len(a))
-        
+
+        a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series',
+                                             'Expand' : True,
+                                             'Query' : { 'PatientPosition' : 'HFS' }})
+        self.assertEqual(2, len(a))
+
+        a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series',
+                                             'Expand' : False,
+                                             'Query' : { 'PatientPosition' : 'HFS' }})
+        self.assertEqual(2, len(a))
         
 
     def test_rest_query_retrieve(self):