Beispiel #1
0
 def test_modules_should_return_bytes(self):
     """
     Test modules(self)
     """
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(opts)
     modules = sfwebui.eventtypes()
     self.assertIsInstance(modules, bytes)
Beispiel #2
0
 def test_eventtypes_should_return_list(self):
     """
     Test eventtypes(self)
     """
     opts = self.default_options
     opts['__modules__'] = dict()
     sfwebui = SpiderFootWebUi(self.web_default_options, opts)
     event_types = sfwebui.eventtypes()
     self.assertIsInstance(event_types, list)