コード例 #1
0
 def test_health_check_fails(self):
     self.request.registry.app_config['ldap']['servers'] = [ 'no host' ]
     with self.assertRaises(HTTPInternalServerError):
         hc = health_check(self.request)
コード例 #2
0
 def test_health_check(self):
     hc = health_check(self.request)
     self.assertEqual(hc, 'OK')