コード例 #1
0
ファイル: activation.py プロジェクト: adeshnr/nmos-testing
 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))
コード例 #2
0
def getIOList(ioType):
    url = "{}{}s".format(globalConfig.apiUrl, ioType)
    call = Call(url)
    call.expectedCode = 200
    response = call.get()
    return trimTrailingSlashesInList(response)