Mercurial > hg > orthanc-tests
changeset 116:4a196ebc7a4f
updated tests for issue #31
author | amazy |
---|---|
date | Thu, 13 Jul 2017 12:39:26 +0200 |
parents | 9d09f6f21b60 |
children | d87bf4fbbf83 |
files | Tests/Tests.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Jul 10 21:11:12 2017 +0200 +++ b/Tests/Tests.py Thu Jul 13 12:39:26 2017 +0200 @@ -1251,8 +1251,10 @@ pass self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/modalities/toto')) DoPut(_REMOTE, '/modalities/toto', [ "STORESCP", "localhost", 2000 ]) - DoPut(_REMOTE, '/modalities/tata', [ "STORESCP", "localhost", 2000, 'MedInria' ]) - self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/modalities/toto', [ "STORESCP", "localhost", 2000, 'MedInriaaa' ])) + DoPut(_REMOTE, '/modalities/tata', [ "STORESCP", "localhost", 2000, 'MedInria' ]) # check backward compatiblity with obsolete manufacturer + DoDelete(_REMOTE, '/modalities/tata') + DoPut(_REMOTE, '/modalities/tata', [ "STORESCP", "localhost", 2000, 'GenericNoWildcards' ]) + self.assertRaises(Exception, lambda: DoPut(_REMOTE, '/modalities/toto', [ "STORESCP", "localhost", 2000, 'InvalidManufacturerName' ])) self.assertTrue('store' in DoGet(_REMOTE, '/modalities/toto')) self.assertTrue('store' in DoGet(_REMOTE, '/modalities/tata')) DoDelete(_REMOTE, '/modalities/toto')