Exemplo n.º 1
0
 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"))
Exemplo n.º 2
0
 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"))
Exemplo n.º 3
0
 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"))