Exemplo n.º 1
0
 def test_rerunscan_invalid_scan_id_should_return_error(self):
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(self.web_default_options, opts)
     rerunscan = sfwebui.rerunscan("example scan instance")
     self.assertIsInstance(rerunscan, str)
     self.assertIn("Invalid scan ID", rerunscan)
Exemplo n.º 2
0
 def test_rerunscan(self):
     """
     Test rerunscan(self, id)
     """
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(opts)
     rerunscan = sfwebui.rerunscan("example scan instance")
     self.assertIsInstance(rerunscan, str)