Mercurial > hg > orthanc-tests
diff Tests/Tests.py @ 233:ce0b19a2c807
test_bitbucket_issue_136
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2019 13:34:41 +0200 |
parents | 4087505ddfe3 |
children | 93cd4fdd4a67 |
line wrap: on
line diff
--- a/Tests/Tests.py Tue Mar 05 07:02:42 2019 +0100 +++ b/Tests/Tests.py Fri Apr 05 13:34:41 2019 +0200 @@ -4602,3 +4602,10 @@ '{"TargetAet":"ORTHANCTEST","Synchronous":false}')) self.assertEqual(1, len(DoGet(_LOCAL, '/instances'))) + + def test_bitbucket_issue_136(self): + UploadInstance(_REMOTE, 'Issue137.dcm') + i = CallFindScu([ '-k', '0008,0052=STUDY', '-k', '0010,0010', '-k', '0028,0010', '-k', '0040,0275' ]) + patientNames = re.findall('\(0010,0010\).*?\[(.*?)\]', i) + self.assertEqual(1, len(patientNames)) + self.assertEqual('John Doe', patientNames[0])