changeset 125:15e4dc0a5810

test_gbk_alias
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Sep 2017 16:35:06 +0200
parents b110dc52ab38
children 6ead76f08d9c
files Database/2017-09-19-GBK-Tumashu.dcm Tests/Tests.py
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file Database/2017-09-19-GBK-Tumashu.dcm has changed
--- a/Tests/Tests.py	Tue Jul 18 20:22:47 2017 +0200
+++ b/Tests/Tests.py	Fri Sep 22 16:35:06 2017 +0200
@@ -3403,3 +3403,11 @@
         Check('Test-éüäöò', 1, 1)
         Check('Test-ÉÜÄÖÒ', 1, 0)
 
+        
+    def test_gbk_alias(self):
+        # https://groups.google.com/d/msg/orthanc-users/WMM8LMbjpUc/02-1f_yFCgAJ
+        # This test fails on Orthanc <= 1.3.0
+        i = UploadInstance(_REMOTE, '2017-09-19-GBK-Tumashu.dcm')['ID']
+        tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % i)
+        self.assertEqual(tags['PatientName'], u'徐浩凯')
+        self.assertEqual(tags['InstitutionName'], u'灌云县疾病预防控制中心')