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')
def test_app_sign_good(self, sign_response): sign_response().status_code = 200 sign_response().content = '{"zigbert.rsa": "Vm0wd2QyUXlVWGxW"}' eq_(monitors.package_signer()[0], '')