changeset 186:8feebc2bf9fc

test options expand and limit to /queries/.../answers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 20:36:08 +0100
parents d4a5e4143d68
children 770f6f5aea16
files Tests/Tests.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Thu Nov 29 11:10:08 2018 +0100
+++ b/Tests/Tests.py	Thu Nov 29 20:36:08 2018 +0100
@@ -1690,6 +1690,14 @@
         self.assertEqual(2, len(DoGet(_REMOTE, '/series')))
         self.assertEqual(4, len(DoGet(_REMOTE, '/instances')))
 
+        # New in Orthanc 1.4.3
+        s = DoGet(_REMOTE, '/queries/%s/answers?expand&simplify' % a)
+        self.assertEqual(2, len(s))
+        for i in range(2):
+            self.assertEqual('SERIES', s[i]['QueryRetrieveLevel'])
+            self.assertEqual('887', s[i]['PatientID'])
+            self.assertEqual('2.16.840.1.113669.632.20.121711.10000160881', s[i]['StudyInstanceUID'])
+        
         DoDelete(_REMOTE, '/queries/%s' % a)
         self.assertEqual(0, len(DoGet(_REMOTE, '/queries')))