def test_load_service(self): json = """{ "authentication": { "providers": [{ "issuer": "auth-issuer" }] } }""" service = _read_service_from_json(json) self.assertIsNotNone(wsgi._create_authenticator(service))
def test_load_service(self): json = """{ "authentication": { "providers": [{ "issuer": "auth-issuer" }] } }""" service = _read_service_from_json(json) self.assertIsNotNone(wsgi._create_authenticator(service))
def test_load_service_without_auth(self): service = _read_service_from_json(u"{}") self.assertIsNone(wsgi._create_authenticator(service))
def test_create_without_service(self): with self.assertRaises(ValueError): wsgi._create_authenticator(None)
def test_load_service_without_auth(self): service = _read_service_from_json(u"{}") self.assertIsNone(wsgi._create_authenticator(service))
def test_create_without_service(self): with self.assertRaises(ValueError): wsgi._create_authenticator(None)