Mercurial > hg > orthanc-tests
comparison Plugins/DicomWeb/Run.py @ 388:3ef44d201875
revert incorrect changeset 386
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Feb 2021 08:45:43 +0100 |
parents | 344dafb7c9ff |
children | 9528e2a03d3c |
comparison
equal
deleted
inserted
replaced
387:3152cf15a0c5 | 388:3ef44d201875 |
---|---|
236 try: | 236 try: |
237 DoDelete(ORTHANC, '/dicom-web/servers/google') # If "AllWindowsStart.sh" is used | 237 DoDelete(ORTHANC, '/dicom-web/servers/google') # If "AllWindowsStart.sh" is used |
238 except: | 238 except: |
239 pass | 239 pass |
240 | 240 |
241 try: | |
242 DoDelete(ORTHANC, '/dicom-web/servers/hello') # If "test_add_server" fails | |
243 except: | |
244 pass | |
245 | |
241 UploadInstance(ORTHANC, 'Knee/T1/IM-0001-0001.dcm') | 246 UploadInstance(ORTHANC, 'Knee/T1/IM-0001-0001.dcm') |
242 | 247 |
243 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/servers'))) | 248 self.assertEqual(1, len(DoGet(ORTHANC, '/dicom-web/servers'))) |
244 self.assertTrue('sample' in DoGet(ORTHANC, '/dicom-web/servers')) | 249 self.assertTrue('sample' in DoGet(ORTHANC, '/dicom-web/servers')) |
245 | 250 |
755 self.assertFalse(s['hello']['Pkcs11']) | 760 self.assertFalse(s['hello']['Pkcs11']) |
756 self.assertEqual(1, len(s['hello']['HttpHeaders'])) | 761 self.assertEqual(1, len(s['hello']['HttpHeaders'])) |
757 self.assertTrue('Hello' in s['hello']['HttpHeaders']) | 762 self.assertTrue('Hello' in s['hello']['HttpHeaders']) |
758 self.assertEqual('Test', s['hello']['UserProperty']) | 763 self.assertEqual('Test', s['hello']['UserProperty']) |
759 self.assertEqual('1', s['hello']['HasDelete']) | 764 self.assertEqual('1', s['hello']['HasDelete']) |
760 self.assertEqual(66, int(s['hello']['Timeout'])) # New in 1.6 | 765 self.assertEqual(66, s['hello']['Timeout']) # New in 1.6 (interpreted as a string in <= 1.5) |
761 | 766 |
762 DoDelete(ORTHANC, '/dicom-web/servers/hello') | 767 DoDelete(ORTHANC, '/dicom-web/servers/hello') |
763 | 768 |
764 | 769 |
765 def test_bitbucket_issue_143(self): | 770 def test_bitbucket_issue_143(self): |