changeset 233:ce0b19a2c807

test_bitbucket_issue_136
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Apr 2019 13:34:41 +0200
parents f2af7bdc9bf8
children 93cd4fdd4a67
files Database/Issue137.dcm Tests/Tests.py
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file Database/Issue137.dcm has changed
--- 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])