예제 #1
0
파일: views.py 프로젝트: ARPA-SIMC/arkimet
 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"))