def testPutOtpBlob(): result = otp.putOtpBlob(otpData, sk, urls) assert result[url1 + "/" + otpData["id"]].status == 200 assert result[url1 + "/" + otpData["id"]].response.body == otpData assert result[url2 + "/" + otpData["id"]].status == 200 assert result[url2 + "/" + otpData["id"]].response.body == otpData
def testPutOtpBlobEmptySk(): with pytest.raises(ValueError) as ex: otp.putOtpBlob(otpData, "", urls)
def testPutOtpBlobNoSk(): with pytest.raises(ValueError) as ex: otp.putOtpBlob(otpData, None, urls)
def testPutOtpBlobEmptyUrls(): with pytest.raises(ValueError) as ex: otp.putOtpBlob(otpData, sk, [])
def testPutOtpBlobNoUrls(): with pytest.raises(ValueError) as ex: otp.putOtpBlob(otpData, sk, None)