Mercurial > hg > orthanc-tests
diff PerfsDb/Tests/ToolsFind.py @ 162:dbc42a03ee75
more perfs db tests
author | am@osimis.io |
---|---|
date | Mon, 20 Aug 2018 14:23:54 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PerfsDb/Tests/ToolsFind.py Mon Aug 20 14:23:54 2018 +0200 @@ -0,0 +1,21 @@ +from Test import Test + +class TestToolsFindStudyByStudyInstanceUID(Test): + + def __init__(self, name:str = "ToolsFindStudyByStudyInstanceUID"): + super().__init__(name) + + def test(self): + self._orthanc.studies.find( + studyInstanceUid="99999.99999" + ) + +class TestToolsFindPatientByPatientID(Test): + + def __init__(self, name:str = "ToolsFindPatientByPatientID"): + super().__init__(name) + + def test(self): + self._orthanc.patients.find( + dicomPatientId="99999" + ) \ No newline at end of file