changeset 348:bed0ab3a1391

test deleting inexistent modality/peer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 01 Nov 2020 12:41:52 +0100
parents c56eaf5928f0
children 698898a93a10
files Tests/Tests.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Oct 26 12:23:49 2020 +0100
+++ b/Tests/Tests.py	Sun Nov 01 12:41:52 2020 +0100
@@ -1397,6 +1397,7 @@
         except:
             pass
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/modalities/toto'))
+        self.assertRaises(Exception, lambda: DoDelete(_REMOTE, '/modalities/toto'))
         DoPut(_REMOTE, '/modalities/toto', [ "STORESCP", "localhost", 2000 ])
         DoPut(_REMOTE, '/modalities/tata', [ "STORESCP", "localhost", 2000, 'MedInria' ]) # check backward compatiblity with obsolete manufacturer
         DoDelete(_REMOTE, '/modalities/tata')
@@ -1428,6 +1429,7 @@
         except:
             pass
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/peers/toto'))
+        self.assertRaises(Exception, lambda: DoDelete(_REMOTE, '/peers/toto'))
         DoPut(_REMOTE, '/peers/toto', [ 'http://localhost:8042/' ])
         DoPut(_REMOTE, '/peers/tata', { 'Url': 'http://localhost:8042/',
                                         'Username': 'user',