changeset 269:b2d8582b9181

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Feb 2020 13:21:50 +0100
parents c8d79d8258cd
children 082f35cb4459
files Tests/Tests.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Feb 26 11:58:33 2020 +0100
+++ b/Tests/Tests.py	Wed Feb 26 13:21:50 2020 +0100
@@ -5129,11 +5129,12 @@
                     'Normalize' : normalize,
                 }))
 
+                # Wildcard matching is not allowed for this VR
                 # This test fails on Orthanc <= 1.5.8
-                self.assertEqual(0, CountAnswers({
+                self.assertRaises(Exception, lambda: CountAnswers({
                     'Level' : level,
                     'Query' : {
-                        'StudyInstanceUID' : '*'  # Wildcard matching not allowed for this VR
+                        'StudyInstanceUID' : '*'
                     },
                     'Normalize' : normalize,
                 }))