comparison Plugins/DicomWeb/Run.py @ 261:b8cdb0aef4b9

test_bitbucket_issue_164
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Feb 2020 11:43:14 +0100
parents 943166deebcb
children 082f35cb4459
comparison
equal deleted inserted replaced
260:943166deebcb 261:b8cdb0aef4b9
973 self.assertEqual(1, len(a)) 973 self.assertEqual(1, len(a))
974 self.assertFalse('00100010' in a[0]) # PatientName 974 self.assertFalse('00100010' in a[0]) # PatientName
975 self.assertFalse('00080060' in a[0]) # Modality 975 self.assertFalse('00080060' in a[0]) # Modality
976 self.assertEqual(study, a[0]['0020000D']['Value'][0]) 976 self.assertEqual(study, a[0]['0020000D']['Value'][0])
977 self.assertEqual(series, a[0]['0020000E']['Value'][0]) 977 self.assertEqual(series, a[0]['0020000E']['Value'][0])
978
979
980 def test_bitbucket_issue_164(self):
981 # https://bitbucket.org/sjodogne/orthanc/issues/164
982 UploadInstance(ORTHANC, 'Issue164.dcm')
983
984 p = DoGetMultipart(ORTHANC, 'dicom-web/studies/1.2.276.0.26.1.1.1.2.2020.45.52293.1506048/series/1.2.276.0.26.1.1.1.2.2020.45.52293.6384450/instances/1.2.276.0.26.1.1.1.2.2020.45.52366.2551599.179568640/frames/5')
985 self.assertEqual(1, len(p))
986 self.assertEqual(743 * 975 * 3, len(p[0]))
978 987
979 988
980 try: 989 try:
981 print('\nStarting the tests...') 990 print('\nStarting the tests...')
982 unittest.main(argv = [ sys.argv[0] ] + args.options) 991 unittest.main(argv = [ sys.argv[0] ] + args.options)