def test_scan_event_result_export_should_return_bytes(self): """ Test scaneventresultexport(self, id, type, filetype="csv", dialect="excel") """ opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(self.web_default_options, opts) search_results = sfwebui.scaneventresultexport("", "") self.assertIsInstance(search_results, bytes) search_results = sfwebui.scaneventresultexport("", "", "excel") self.assertIsInstance(search_results, bytes)
def test_scan_event_result_export_multi(self): """ Test scaneventresultexportmulti(self, ids, dialect="excel") """ opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(opts) search_results = sfwebui.scaneventresultexport("", "", "excel") self.assertIsInstance(search_results, bytes)