changeset 503:138d5efd4407

added test_rle_planar_configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Dec 2022 15:25:12 +0100
parents 070bc47f4f3e
children 9f28cb3d7979
files Database/2022-11-14-RLEPlanarConfiguration.dcm Tests/Tests.py
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file Database/2022-11-14-RLEPlanarConfiguration.dcm has changed
--- a/Tests/Tests.py	Mon Dec 19 15:46:50 2022 +0100
+++ b/Tests/Tests.py	Thu Dec 22 15:25:12 2022 +0100
@@ -3901,6 +3901,7 @@
             self.assertEqual(mbb, mab)
 
 
+    @unittest.skip("httpbin.org is down as of 2022-12-22")  # TODO
     def test_httpClient_lua(self):
         retries = 4
         result = ''
@@ -8914,3 +8915,14 @@
 
         DropOrthanc(_REMOTE)        
         DropOrthanc(_LOCAL)        
+
+    def test_rle_planar_configuration(self):
+        # This test failed in Orthanc <= 1.11.2
+        # https://groups.google.com/g/orthanc-users/c/CSVWfRasSR0/m/y1XDRXVnAgAJ
+        a = UploadInstance(_REMOTE, '2022-11-14-RLEPlanarConfiguration.dcm') ['ID']
+        uri = '/instances/%s/preview' % a
+        im = GetImage(_REMOTE, uri)
+        self.assertEqual('RGB', im.mode)
+        self.assertEqual(1475, im.size[0])
+        self.assertEqual(1475, im.size[1])
+        self.assertEqual('c684b0050dc2523041240bf2d26dc85e', ComputeMD5(DoGet(_REMOTE, uri)))