changeset 242:c6ffdd0ea04b

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Jun 2019 09:27:44 +0200
parents adc6372b8820
children cccf697a4e13
files Plugins/DicomWeb/Run.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py	Wed Jun 12 18:15:32 2019 +0200
+++ b/Plugins/DicomWeb/Run.py	Thu Jun 13 09:27:44 2019 +0200
@@ -675,7 +675,8 @@
                 'Hello' : 'World'
             },
             'Username' : 'bob',
-            'Password' : 'bob'
+            'Password' : 'password',
+            'UserProperty' : 'Test',
             })
 
         l = DoGet(ORTHANC, '/dicom-web/servers')
@@ -684,13 +685,14 @@
         self.assertTrue('hello' in l)        
 
         s = DoGet(ORTHANC, '/dicom-web/servers?expand')
-        self.assertEqual(5, len(s['hello']))
+        self.assertEqual(6, len(s['hello']))
         self.assertEqual(url, s['hello']['Url'])
         self.assertEqual('bob', s['hello']['Username'])
         self.assertEqual(None, s['hello']['Password'])
         self.assertFalse(s['hello']['Pkcs11'])
         self.assertEqual(1, len(s['hello']['HttpHeaders']))
         self.assertTrue('Hello' in s['hello']['HttpHeaders'])
+        self.assertEqual('Test', s['hello']['UserProperty'])
         
         DoDelete(ORTHANC, '/dicom-web/servers/hello')