Mercurial > hg > orthanc-tests
changeset 64:369e439cdfd6
test access header
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Nov 2015 18:52:40 +0100 |
parents | 2652d562267a |
children | 09fc27e0899a 821d9eb73c45 |
files | Tests/Tests.py |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Wed Nov 25 10:33:08 2015 +0100 +++ b/Tests/Tests.py Thu Nov 26 18:52:40 2015 +0100 @@ -198,7 +198,10 @@ im = GetImage(_REMOTE, '/instances/%s/frames/0/image-uint16' % i) self.assertEqual(512, im.size[0]) self.assertEqual(358, im.size[1]) - + + # This is Little Endian Explicit + self.assertEqual('1.2.840.10008.1.2.1', DoGet(_REMOTE, '/instances/%s/header?simplify' % i)['TransferSyntaxUID']) + def test_hierarchy(self): UploadFolder(_REMOTE, 'Brainix/Epi') @@ -1912,7 +1915,11 @@ self.assertEqual(0, len(DoGet(_REMOTE, '/exports')['Exports'])) knixStudy = 'b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0' - UploadInstance(_REMOTE, 'Knix/Loc/IM-0001-0001.dcm') + i = UploadInstance(_REMOTE, 'Knix/Loc/IM-0001-0001.dcm')['ID'] + + # This is JPEG lossless + self.assertEqual('1.2.840.10008.1.2.4.70', DoGet(_REMOTE, '/instances/%s/header?simplify' % i)['TransferSyntaxUID']) + UploadInstance(_REMOTE, 'Knix/Loc/IM-0001-0002.dcm') UploadInstance(_REMOTE, 'Knix/Loc/IM-0001-0003.dcm')