diff Tests/Tests.py @ 102:9671578fd4d3

added tests for Lua HttpPost/Put/Get/Delete methods
author amazy
date Thu, 02 Feb 2017 21:10:49 +0100
parents 2af6c0fb850d
children 7530eb50c3c4
line wrap: on
line diff
--- a/Tests/Tests.py	Thu Feb 02 15:56:34 2017 +0100
+++ b/Tests/Tests.py	Thu Feb 02 21:10:49 2017 +0100
@@ -3136,3 +3136,9 @@
         CompareMainDicomTag('hello', a, 'study', 'StudyDescription')
         CompareMainDicomTag('world', a, 'series', 'SeriesDescription')
         CompareMainDicomTag('1.2.840.113619.2.176.2025.1499492.7040.1171286242.109', a, '', 'SOPInstanceUID')
+
+    def test_httpPost_lua(self):
+        with open(GetDatabasePath('Lua/HttpPost.lua'), 'r') as f:
+            result = DoPost(_REMOTE, '/tools/execute-script', f.read(), 'application/lua')
+
+        self.assertIn('OK', result)