Mercurial > hg > orthanc-tests
changeset 390:5c2472f008eb
Check the order in which the creation events are reported
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 16:59:25 +0100 |
parents | 27e0a2fcdc85 |
children | 227d9a932467 |
files | Tests/Tests.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Mar 08 14:42:33 2021 +0100 +++ b/Tests/Tests.py Mon Mar 08 16:59:25 2021 +0100 @@ -510,6 +510,12 @@ self.assertTrue(c['Done']) self.assertEqual(c['Changes'][-1]['Seq'], c['Last']) + # Check the order in which the creation events are reported + self.assertEqual(c['Changes'][0]['ChangeType'], 'NewInstance') + self.assertEqual(c['Changes'][1]['ChangeType'], 'NewSeries') + self.assertEqual(c['Changes'][2]['ChangeType'], 'NewStudy') + self.assertEqual(c['Changes'][3]['ChangeType'], 'NewPatient') + c = DoGet(_REMOTE, '/changes?last') self.assertEqual(1, len(c['Changes'])) self.assertEqual(begin, c['Last'])