Esempio n. 1
0
 def test(self):
     t = Tests()
     tId = 123
     bSynchronous = True
     testIds = [ATestId(234), ATestId(345), ATestId(456)]
     result = t._handler_queryTests(tId, bSynchronous, testIds)
     assert isinstance(result, iApiTransportResponse)
     response = result.response()
     assert isinstance(response, dict)
     #    Now check returned results:
     for key, value in response.items():
         assert isinstance(value, CachedTestDetails)
         tId = key.testId()
         found = None
         for i in testIds:
             testId = i.testId()
             if tId == testId:
                 found = i
                 break
         assert found