comparison Tests/Tests.py @ 111:7005cdeeb704

test_bitbucket_issue_42
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Jul 2017 13:11:23 +0200
parents fddb35f7289d
children 9d09f6f21b60
comparison
equal deleted inserted replaced
110:4a8df7a0d0b9 111:7005cdeeb704
3180 self.assertEqual(2010, im.size[1]) 3180 self.assertEqual(2010, im.size[1])
3181 3181
3182 # This is the key image, with MONOCHROME2. Raw background is 3182 # This is the key image, with MONOCHROME2. Raw background is
3183 # white (255), should be rendered as white (255) 3183 # white (255), should be rendered as white (255)
3184 self.assertEqual(255, im.getpixel((0,0))) 3184 self.assertEqual(255, im.getpixel((0,0)))
3185
3186
3187 def test_bitbucket_issue_42(self):
3188 # https://bitbucket.org/sjodogne/orthanc/issues/42/fails-to-modify-a-dicom-video-file
3189 # This test fails on DCMTK 3.6.0, but succeeds in DCMTK 3.6.1 snapshots
3190 UploadInstance(_REMOTE, 'Issue42.dcm')['ID']
3191 modified = DoPost(_REMOTE,
3192 '/patients/da128605-e040d0c4-310615d2-3475da63-df2d1ef4/modify',
3193 '{"Replace":{"PatientID":"Hello","PatientName":"Sample patient name"}}',
3194 'application/json')
3195 self.assertTrue('PatientID' in modified)
3196