Mercurial > hg > orthanc-tests
diff Tests/Tests.py @ 326:05f48c19c60d
Test "Retrieve AE Title" is returned by C-FIND SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Aug 2020 08:19:29 +0200 |
parents | 6164d39399ad |
children | 33ba5b1a0dd9 |
line wrap: on
line diff
--- a/Tests/Tests.py Wed Aug 12 20:30:28 2020 +0200 +++ b/Tests/Tests.py Fri Aug 14 08:19:29 2020 +0200 @@ -1213,6 +1213,14 @@ studies = re.findall('\(0008,0020\).*?\[\s*(.*?)\s*\]', i) self.assertEqual(1, len(studies)) self.assertTrue('19980312' in studies) + + # Test that "Retrieve AE Title (0008,0054)" is present, which + # was *not* the case in Orthanc <= 1.7.2 + i = CallFindScu([ '-k', '0008,0052=INSTANCE' ]) + instances = re.findall('\(0008,0054\).*?\[\s*(.*?)\s*\]', i) + self.assertEqual(2, len(instances)) + self.assertEqual('ORTHANC', instances[0].strip()) + self.assertEqual('ORTHANC', instances[1].strip()) def test_incoming_findscu_2(self):