Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 235:9929e4af2b7a
test_bitbucket_issue_140
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 May 2019 15:23:19 +0200 |
parents | 93cd4fdd4a67 |
children | 2de1aec255ae |
comparison
equal
deleted
inserted
replaced
234:93cd4fdd4a67 | 235:9929e4af2b7a |
---|---|
4638 '1.2.840.10008.5.1.4.1.1.1') # SOP class for CR Image Storage | 4638 '1.2.840.10008.5.1.4.1.1.1') # SOP class for CR Image Storage |
4639 | 4639 |
4640 # This fails on Orthanc <= 1.5.6 | 4640 # This fails on Orthanc <= 1.5.6 |
4641 self.assertEqual(tags['0008,1115'][0]['0020,000e'], | 4641 self.assertEqual(tags['0008,1115'][0]['0020,000e'], |
4642 cr[0]['MainDicomTags']['SeriesInstanceUID']) | 4642 cr[0]['MainDicomTags']['SeriesInstanceUID']) |
4643 | |
4644 | |
4645 @unittest.skip('Not fixed yet in Orthanc') | |
4646 def test_bitbucket_issue_140(self): | |
4647 source = UploadInstance(_REMOTE, 'Issue140.dcm') ['ID'] | |
4648 series = DoGet(_REMOTE, '/instances/%s' % source) ['ParentSeries'] | |
4649 | |
4650 target = DoPost(_REMOTE, '/series/%s/modify' % series, { | |
4651 'Replace' : { 'RadioButton3' : 'aaabbbccc' } | |
4652 }, 'application/json') ['ID'] | |
4653 | |
4654 instances = DoGet(_REMOTE, '/series/%s/instances' % target) | |
4655 self.assertEqual(1, len(instances)) | |
4656 | |
4657 tags = DoGet(_REMOTE, '/instances/%s/tags' % source) | |
4658 t = tags['4321,1012'] | |
4659 self.assertEqual('String', t['Type']) | |
4660 self.assertEqual('RadioButton3', t['Name']) | |
4661 self.assertEqual('RadioLogic', t['PrivateCreator']) | |
4662 self.assertEqual('jklmopq', t['Value']) | |
4663 | |
4664 tags = DoGet(_REMOTE, '/instances/%s/tags' % instances[0]['ID']) | |
4665 t = tags['4321,1012'] | |
4666 self.assertEqual('String', t['Type']) | |
4667 self.assertEqual('RadioButton3', t['Name']) | |
4668 self.assertEqual('RadioLogic', t['PrivateCreator']) | |
4669 self.assertEqual('aaabbbccc', t['Value']) |