comparison Tests/Tests.py @ 43:5f3bcdde2461

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 13:02:43 +0200
parents 8fb14554b27c
children ffa542cce638
comparison
equal deleted inserted replaced
42:4fa03fcbff5e 43:5f3bcdde2461
60 DoPost(_REMOTE, '/tools/execute-script', f.read(), 'application/lua') 60 DoPost(_REMOTE, '/tools/execute-script', f.read(), 'application/lua')
61 61
62 62
63 def UninstallLuaCallbacks(): 63 def UninstallLuaCallbacks():
64 DoPost(_REMOTE, '/tools/execute-script', 'function OnStoredInstance() end', 'application/lua') 64 DoPost(_REMOTE, '/tools/execute-script', 'function OnStoredInstance() end', 'application/lua')
65 InstallLuaScript('Lua/TransferSyntaxEnable.lua')
65 66
66 67
67 def CompareLists(a, b): 68 def CompareLists(a, b):
68 if len(a) != len(b): 69 if len(a) != len(b):
69 return False 70 return False
1848 self.assertEqual(0, len(DoGet(_REMOTE, '/patients'))) 1849 self.assertEqual(0, len(DoGet(_REMOTE, '/patients')))
1849 InstallLuaScript('Lua/TransferSyntaxDisable.lua') 1850 InstallLuaScript('Lua/TransferSyntaxDisable.lua')
1850 self.assertRaises(Exception, storescu) 1851 self.assertRaises(Exception, storescu)
1851 self.assertEqual(0, len(DoGet(_REMOTE, '/patients'))) 1852 self.assertEqual(0, len(DoGet(_REMOTE, '/patients')))
1852 InstallLuaScript('Lua/TransferSyntaxEnable.lua') 1853 InstallLuaScript('Lua/TransferSyntaxEnable.lua')
1854 DoPost(_REMOTE, '/tools/execute-script', "print('All special transfer syntaxes are now accepted')")
1853 storescu() 1855 storescu()
1854 self.assertEqual(1, len(DoGet(_REMOTE, '/patients'))) 1856 self.assertEqual(1, len(DoGet(_REMOTE, '/patients')))
1855 1857
1856 1858
1857 def test_storescu_jpeg(self): 1859 def test_storescu_jpeg(self):