예제 #1
0
 def test_app_sign_fail(self, sign_response):
     sign_response().side_effect = requests.exceptions.HTTPError
     assert monitors.package_signer()[0].startswith('Error on package sign')
예제 #2
0
 def test_app_sign_fail(self, sign_response):
     sign_response().side_effect = requests.exceptions.HTTPError
     assert monitors.package_signer()[0].startswith('Error on package sign')
예제 #3
0
 def test_app_sign_good(self, sign_response):
     sign_response().status_code = 200
     sign_response().content = '{"zigbert.rsa": "Vm0wd2QyUXlVWGxW"}'
     eq_(monitors.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_(monitors.package_signer()[0], '')