comparison Tests/Tests.py @ 175:09ca519087a1

doc
author am@osimis.io
date Thu, 20 Sep 2018 11:58:08 +0200
parents d468cbe1b161
children 48cc188ffb09
comparison
equal deleted inserted replaced
174:d468cbe1b161 175:09ca519087a1
3827 instances = DoGet(_REMOTE, '/instances') 3827 instances = DoGet(_REMOTE, '/instances')
3828 self.assertEqual(2, len(instances)) 3828 self.assertEqual(2, len(instances))
3829 3829
3830 t1 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[0]) 3830 t1 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[0])
3831 t2 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[1]) 3831 t2 = DoGet(_REMOTE, '/instances/%s/metadata/TransferSyntax' % instances[1])
3832 self.assertEqual('1.2.840.10008.1.2.4.90', t1) 3832 self.assertEqual('1.2.840.10008.1.2.4.90', t1) # this will fail if libgdcm-tools is not installed
3833 self.assertEqual(t1, t2); 3833 self.assertEqual(t1, t2);
3834 3834
3835 3835
3836 def test_find_group_length(self): 3836 def test_find_group_length(self):
3837 # Orthanc <= 1.4.1 fails to answer C-FIND queries that contain 3837 # Orthanc <= 1.4.1 fails to answer C-FIND queries that contain