def test_broken_cert(self):
# Verify that broken certs fail.
with self.assertRaises(Unauthorized) as context:
t = template.copy()
t['public_key_url'] = 'broken cert'
validate_gamecenter_token(t)
self.assertIn("Can't load certificate", context.exception.description)
评论列表
文章目录