changeset 359:8b476a383999

test empty body in /modalities/.../echo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Dec 2020 18:39:29 +0100
parents 458b2d887ea0
children fee0c514f376
files Tests/Tests.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Tue Dec 08 15:22:41 2020 +0100
+++ b/Tests/Tests.py	Thu Dec 10 18:39:29 2020 +0100
@@ -1587,6 +1587,10 @@
 
     def test_echo(self):
         DoPost(_REMOTE, '/modalities/orthanctest/echo')
+        DoPost(_REMOTE, '/modalities/orthanctest/echo', '{}')
+
+        # The following was not working in Orthanc 1.7.0 -> 1.8.1
+        DoPost(_REMOTE, '/modalities/orthanctest/echo', '')
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/modalities/nope/echo'))
 
         # New in Orthanc 1.8.1