Mercurial > hg > orthanc-tests
changeset 361:6cf5cc4d0a99 Orthanc-1.8.2
test_transfer_syntax_no_metaheader
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Dec 2020 11:52:25 +0100 |
parents | fee0c514f376 |
children | e31ddbe83d4d |
files | Tests/Tests.py |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Dec 14 15:00:55 2020 +0100 +++ b/Tests/Tests.py Fri Dec 18 11:52:25 2020 +0100 @@ -6157,3 +6157,13 @@ # Both are "Success" (instead of one "AlreadyStored"), because "OverwriteInstance" is true self.assertEqual('Success', i[0]['Status']) + + + def test_transfer_syntax_no_metaheader(self): + a = UploadInstance(_REMOTE, 'TransferSyntaxes/1.2.840.10008.1.2.dcm')['ID'] + m = DoGet(_REMOTE, '/instances/%s/metadata?expand' % a) + self.assertEqual('1.2.840.10008.5.1.4.1.1.4', m['SopClassUid']) + + # This fails on Orthanc <= 1.8.1 + self.assertTrue('TransferSyntax' in m) + self.assertEqual('1.2.840.10008.1.2', m['TransferSyntax'])