def stream(self): # ./run-local arki-query "" http://localhost:8080 self.send_headers() out = arki.matcher_alias_database() self.handler.wfile.write(out.encode("utf-8"))
def test_matcher_alias_database(self): import configparser db = arki.matcher_alias_database() cfg = configparser.ConfigParser() cfg.read_string(db) self.assertTrue(cfg.has_section("origin"))