Esempio n. 1
0
 def testAbort(self):
     #    TODO: Fix once we know how Tests is implemented.
     t = Tests(ns="me")
     tId = 123
     bSynchronous = True
     testIds = [ATestId(456), ATestId(567), ATestId(678)]
     result = t._handler_abort(tId, bSynchronous, testIds)
     assert isinstance(result, iApiTransportResponse)
     response = result.response()
     assert isinstance(response, dict)
     for key, value in response.items():
         assert isinstance(value, iATest)
         tId = key.testId()
         #    Now find the item:
         found = None
         for i in testIds:
             testId = i.testId()
             if tId == testId:
                 found = i
                 break
         assert found