# HG changeset patch # User Sebastien Jodogne # Date 1588844262 -7200 # Node ID b5333f87065b37f58e7ba28f65a41ea8667efa5b # Parent 4a70411ac9ad1fdf04327aaf69e1d12178e9b857 test_bitbucket_issue_169 diff -r 4a70411ac9ad -r b5333f87065b Database/Issue169.dcm.bz2 Binary file Database/Issue169.dcm.bz2 has changed diff -r 4a70411ac9ad -r b5333f87065b Tests/Tests.py --- a/Tests/Tests.py Thu May 07 11:12:06 2020 +0200 +++ b/Tests/Tests.py Thu May 07 11:37:42 2020 +0200 @@ -22,6 +22,7 @@ import base64 +import bz2 import copy import pprint import tempfile @@ -5477,3 +5478,40 @@ params['AllowTranscoding'] = False DoPut(_REMOTE, '/modalities/toto', params) self.assertRaises(Exception, lambda: DoPost(_REMOTE, '/modalities/toto/store', str(i), 'text/plain')) + + + def test_bitbucket_issue_169(self): + def GetTransferSyntax(dicom): + with tempfile.NamedTemporaryFile(delete = True) as f: + f.write(dicom) + f.flush() + data = subprocess.check_output([ FindExecutable('dcm2xml'), f.name ]) + + return re.search('