Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 28:156c7ae164b5
new test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2015 12:10:30 +0200 |
parents | cde1691838d3 |
children | 1047d7bc5210 |
comparison
equal
deleted
inserted
replaced
27:cde1691838d3 | 28:156c7ae164b5 |
---|---|
1281 self.assertTrue('find-study' in DoGet(_REMOTE, '/modalities/orthanctest')) | 1281 self.assertTrue('find-study' in DoGet(_REMOTE, '/modalities/orthanctest')) |
1282 self.assertTrue('store' in DoGet(_REMOTE, '/modalities/orthanctest')) | 1282 self.assertTrue('store' in DoGet(_REMOTE, '/modalities/orthanctest')) |
1283 self.assertTrue('store' in DoGet(_REMOTE, '/peers/peer')) | 1283 self.assertTrue('store' in DoGet(_REMOTE, '/peers/peer')) |
1284 self.assertTrue('matlab' in DoGet(_REMOTE, '/instances/%s/frames/0' % a)) | 1284 self.assertTrue('matlab' in DoGet(_REMOTE, '/instances/%s/frames/0' % a)) |
1285 self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/tools/nope')) | 1285 self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/tools/nope')) |
1286 self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/nope')) | |
1287 self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/nope/nope.html')) | |
1288 self.assertEqual(404, DoGetRaw(_REMOTE, '/nope')[0].status) | |
1289 self.assertEqual(404, DoGetRaw(_REMOTE, '/nope/nope.html')[0].status) | |
1286 | 1290 |
1287 | 1291 |
1288 def test_echo(self): | 1292 def test_echo(self): |
1289 DoPost(_REMOTE, '/modalities/orthanctest/echo') | 1293 DoPost(_REMOTE, '/modalities/orthanctest/echo') |
1290 | 1294 |