示例#1
0
 def test_app_sign_fail(self, sign_response):
     sign_response().side_effect = requests.exceptions.HTTPError
     assert package_signer()[0].startswith("Error on package signing")
示例#2
0
 def test_app_sign_fail(self, sign_response):
     sign_response().side_effect = requests.exceptions.HTTPError
     assert package_signer()[0].startswith('Error on package signing')
示例#3
0
 def test_app_sign_good(self, sign_response):
     sign_response().status_code = 200
     sign_response().content = '{"zigbert.rsa": "Vm0wd2QyUXlVWGxW"}'
     eq_(package_signer()[0], "")
示例#4
0
 def test_app_sign_good(self, sign_response):
     sign_response().status_code = 200
     sign_response().content = '{"zigbert.rsa": "Vm0wd2QyUXlVWGxW"}'
     eq_(package_signer()[0], '')