changeset 207:a515eec74078

test_invalid_findscp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jan 2019 14:22:47 +0100
parents 48f3389e0bd0
children 2444c9a7c422
files Tests/Tests.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Fri Jan 18 19:21:30 2019 +0100
+++ b/Tests/Tests.py	Wed Jan 23 14:22:47 2019 +0100
@@ -4309,3 +4309,9 @@
 
         z = GetArchive(_REMOTE, '/patients/%s/media' % a)
         self.assertEqual(2, len(z.namelist()))
+
+
+    def test_invalid_findscp(self):
+        UploadInstance(_REMOTE, 'DummyCT.dcm')
+        findscu = CallFindScu([ '-S', '-k', '8,52=IMAGE', '-k', '8,16', '-k', '2,2' ])
+        self.assertEqual(0, len(re.findall('\(0002,0002\)', findscu)))