def test_registration_authority_names(self): """Instances should be listed once config is loaded.""" jsonloader.conf = jsonloader.AnchorConf(logger) jsonloader.conf.load_str_data(json.dumps(self.sample_conf)) self.assertEqual(list(jsonloader.registration_authority_names()), ['default_ra'])
def _lookup(self, ra_name, *remaining): if ra_name in jsonloader.registration_authority_names(): return SignInstanceController(ra_name), remaining pecan.abort(404)
def _lookup(self, ra_name, *remaining): if ra_name in jsonloader.registration_authority_names(): return self._subcontroller(ra_name), remaining pecan.abort(404)