示例#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"))
示例#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"))
示例#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"))