def delete(self): url = self.urlBase + "map/activations/{}".format(self.activationID) deleteCall = Call(url) deleteCall.expectedCode = 204 deleteCall.string = True deleteCall.delete() deleteCall.expectedCode = 404 try: deleteCall.get() except NMOSTestException: msg = "Activation still present at {} after deletion".format(url) raise NMOSTestException(self.test.FAIL(msg))
def getIOList(ioType): url = "{}{}s".format(globalConfig.apiUrl, ioType) call = Call(url) call.expectedCode = 200 response = call.get() return trimTrailingSlashesInList(response)