Mercurial > hg > orthanc-tests
changeset 66:821d9eb73c45
Test returning sequence values
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Dec 2015 11:41:22 +0100 |
parents | 369e439cdfd6 |
children | e711ba6af7ea |
files | Tests/Tests.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Thu Nov 26 18:52:40 2015 +0100 +++ b/Tests/Tests.py Wed Dec 02 11:41:22 2015 +0100 @@ -1068,6 +1068,11 @@ i = CallFindScu([ '-k', '0008,0052=SERIES', '-k', 'PatientName=anonymized' ]) series = re.findall('\(0010,0010\).*?\[\s*(.*?)\s*\]', i) self.assertEqual(1, len(series)) + + # Test returning sequence values (only since Orthanc 0.9.5) + i = CallFindScu([ '-k', '0008,0052=SERIES', '-k', '0008,2112' ]) # "ColorTestImageJ" has this sequence tag + sequences = re.findall('\(0008,2112\)', i) + self.assertEqual(1, len(sequences)) def test_incoming_movescu(self):