コード例 #1
0
 def test_DeleteApplication_successful(self):
     applicationId = "430678"
     tropoTest = TropoProvisioning()
     response = tropoTest.delete_application(applicationId, data_format.JSON)
     print response
     result = "delete successful"
     self.assertEqual(response, result)
コード例 #2
0
 def test_DeleteApplication_failed(self):
     applicationId = "43067112"
     tropoTest = TropoProvisioning()
     response = tropoTest.delete_application(applicationId, data_format.JSON)
     print response
     result = response.find("failed")
     self.assertNotEqual(result, -1)
コード例 #3
0
 def test_DeleteApplication_failed(self):
     applicationId = "43067112"
     tropoTest = TropoProvisioning()
     response = tropoTest.delete_application(applicationId,
                                             data_format.JSON)
     print response
     result = response.find("failed")
     self.assertNotEqual(result, -1)
コード例 #4
0
 def test_DeleteApplication_successful(self):
     applicationId = "430678"
     tropoTest = TropoProvisioning()
     response = tropoTest.delete_application(applicationId,
                                             data_format.JSON)
     print response
     result = "delete successful"
     self.assertEqual(response, result)
コード例 #5
0
def testDeleteApplication(username, password, url):
    applicationId = "427728"
    tropoTest = TropoProvisioning()
    print tropoTest.delete_application(applicationId)