changeset 183:76747a374aff

test
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Oct 2018 12:04:06 +0200
parents 7a6b532853ab
children e244312964d6
files Tests/Tests.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Tue Oct 09 12:51:03 2018 +0200
+++ b/Tests/Tests.py	Thu Oct 18 12:04:06 2018 +0200
@@ -170,8 +170,15 @@
         instance = '66a662ce-7430e543-bad44d47-0dc5a943-ec7a538d'
 
         u = UploadInstance(_REMOTE, 'DummyCT.dcm')
+        self.assertEqual(instance, u['ID'])
         self.assertEqual('Success', u['Status'])
 
+        if True:
+            # New test for Orthanc 1.4.3
+            self.assertEqual('f2635388-f01d497a-15f7c06b-ad7dba06-c4c599fe', u['ParentSeries'])
+            self.assertEqual('b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0', u['ParentStudy'])
+            self.assertEqual('6816cb19-844d5aee-85245eba-28e841e6-2414fae2', u['ParentPatient'])
+
         j = int(DoGet(_REMOTE, '/instances/%s/attachments/dicom-as-json/size' % instance))
         s = sizeDummyCT + j
         self.assertEqual('%d' % s, DoGet(_REMOTE, '/statistics')['TotalDiskSize'])