changeset 111:7005cdeeb704

test_bitbucket_issue_42
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Jul 2017 13:11:23 +0200
parents 4a8df7a0d0b9
children 9d09f6f21b60
files Database/Issue42.dcm Tests/Tests.py
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file Database/Issue42.dcm has changed
--- a/Tests/Tests.py	Tue Jun 27 17:55:19 2017 +0200
+++ b/Tests/Tests.py	Wed Jul 05 13:11:23 2017 +0200
@@ -3182,3 +3182,15 @@
         # This is the key image, with MONOCHROME2. Raw background is
         # white (255), should be rendered as white (255)
         self.assertEqual(255, im.getpixel((0,0)))
+
+
+    def test_bitbucket_issue_42(self):
+        # https://bitbucket.org/sjodogne/orthanc/issues/42/fails-to-modify-a-dicom-video-file
+        # This test fails on DCMTK 3.6.0, but succeeds in DCMTK 3.6.1 snapshots
+        UploadInstance(_REMOTE, 'Issue42.dcm')['ID']
+        modified = DoPost(_REMOTE,
+                          '/patients/da128605-e040d0c4-310615d2-3475da63-df2d1ef4/modify',
+                          '{"Replace":{"PatientID":"Hello","PatientName":"Sample patient name"}}',
+                          'application/json')
+        self.assertTrue('PatientID' in modified)
+