diff Tests/Tests.py @ 22:8f4b70c89467

readme
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Jun 2015 16:29:08 +0200
parents 2a29bcff60a7
children 30ecc857fa07
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Jun 22 14:14:37 2015 +0200
+++ b/Tests/Tests.py	Mon Jun 22 16:29:08 2015 +0200
@@ -1,3 +1,7 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+
 # Orthanc - A Lightweight, RESTful DICOM Store
 # Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics
 # Department, University Hospital of Liege, Belgium
@@ -1965,3 +1969,17 @@
         self.AssertSameImages(tmp, '/instances/%s/preview' % signed)
 
         self.assertEqual('b57e6c872a3da50877c7da689b03a444', ComputeMD5(DoGet(_REMOTE, '/instances/%s/matlab' % signed)))
+
+
+    def test_issue_32(self):
+        f = UploadInstance(_REMOTE, 'Issue32.dcm')['ID']
+        tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % f)
+        self.assertEqual(u'Рентгенография', tags['SeriesDescription'])
+        self.assertEqual(u'Таз', tags['BodyPartExamined'])
+        self.assertEqual(u'Прямая', tags['ViewPosition'])
+
+
+    def test_encodings(self):
+        brainix = UploadInstance(_REMOTE, 'Brainix/Epi/IM-0001-0001.dcm')['ID']
+        tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % brainix)
+        self.assertEqual(u'IRM cérébrale, neuro-crâne', tags['StudyDescription'])