Beispiel #1
0
 def test_scanstatus_should_return_bytes(self):
     """
     Test scanstatus(self, id)
     """
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(opts)
     scan_status = sfwebui.scanstatus("example scan instance")
     self.assertIsInstance(scan_status, bytes)
Beispiel #2
0
 def test_scanstatus_should_return_a_string(self):
     """
     Test scanstatus(self, id)
     """
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(opts)
     scan_status = sfwebui.scanstatus(None)
     self.assertIsInstance(scan_status, str)