def test_health_check_fails(self): self.request.registry.app_config['ldap']['servers'] = [ 'no host' ] with self.assertRaises(HTTPInternalServerError): hc = health_check(self.request)
def test_health_check(self): hc = health_check(self.request) self.assertEqual(hc, 'OK')