Mercurial > hg > orthanc-tests
changeset 524:0699890b9961
more tests for label
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 11 Apr 2023 15:16:32 +0200 |
parents | 767840cb4d3f |
children | 3112c7f2326e |
files | Tests/Tests.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Sat Apr 08 10:13:11 2023 +0200 +++ b/Tests/Tests.py Tue Apr 11 15:16:32 2023 +0200 @@ -9463,6 +9463,12 @@ self.assertEqual(1, len(Execute([ 'a', 'b' ], 'All'))) self.assertEqual(1, len(Execute([ 'a', 'b' ], 'Any'))) self.assertEqual(0, len(Execute([ 'a', 'b' ], 'None'))) + self.assertEqual(0, len(Execute([ 'b', 'c' ], 'All'))) + self.assertEqual(1, len(Execute([ 'b', 'c' ], 'Any'))) + self.assertEqual(0, len(Execute([ 'b', 'c' ], 'None'))) + self.assertEqual(0, len(Execute([ 'c', 'd' ], 'All'))) + self.assertEqual(0, len(Execute([ 'c', 'd' ], 'Any'))) + self.assertEqual(1, len(Execute([ 'c', 'c' ], 'None'))) DoDelete(_REMOTE, '/instances/%s/labels/a' % u) # The instance has label "b"