diff Tests/Tests.py @ 352:3d406c0261fc

test /tools/dicom-echo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 03 Dec 2020 11:51:06 +0100
parents 429cc9d03610
children 49f2943544eb
line wrap: on
line diff
--- a/Tests/Tests.py	Thu Dec 03 10:43:41 2020 +0100
+++ b/Tests/Tests.py	Thu Dec 03 11:51:06 2020 +0100
@@ -1587,6 +1587,12 @@
 
     def test_echo(self):
         DoPost(_REMOTE, '/modalities/orthanctest/echo')
+        self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/modalities/nope/echo'))
+
+        # New in Orthanc 1.8.1
+        DoPost(_REMOTE, '/tools/dicom-echo', [
+            _LOCAL["DicomAet"], _LOCAL["Server"], _LOCAL["DicomPort"] ])
+        DoPost(_REMOTE, '/tools/dicom-echo', DoGet(_REMOTE, '/modalities/orthanctest/configuration'))
 
 
     def test_xml(self):