comparison 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
comparison
equal deleted inserted replaced
101:71bca28a4645 102:9671578fd4d3
3134 DoPost(_REMOTE, '/instances/%s/reconstruct' % b, {}) 3134 DoPost(_REMOTE, '/instances/%s/reconstruct' % b, {})
3135 3135
3136 CompareMainDicomTag('hello', a, 'study', 'StudyDescription') 3136 CompareMainDicomTag('hello', a, 'study', 'StudyDescription')
3137 CompareMainDicomTag('world', a, 'series', 'SeriesDescription') 3137 CompareMainDicomTag('world', a, 'series', 'SeriesDescription')
3138 CompareMainDicomTag('1.2.840.113619.2.176.2025.1499492.7040.1171286242.109', a, '', 'SOPInstanceUID') 3138 CompareMainDicomTag('1.2.840.113619.2.176.2025.1499492.7040.1171286242.109', a, '', 'SOPInstanceUID')
3139
3140 def test_httpPost_lua(self):
3141 with open(GetDatabasePath('Lua/HttpPost.lua'), 'r') as f:
3142 result = DoPost(_REMOTE, '/tools/execute-script', f.read(), 'application/lua')
3143
3144 self.assertIn('OK', result)