def test_scanopts_should_return_dict(self): opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(self.web_default_options, opts) scan_opts = sfwebui.scanopts("example scan instance") self.assertIsInstance(scan_opts, dict) self.assertEqual(scan_opts, dict())
def test_scanopts(self): """ Test scanopts(self, id) """ opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(self.web_default_options, opts) scan_opts = sfwebui.scanopts("example scan instance") self.assertIsInstance(scan_opts, str) self.assertEqual('TBD', 'TBD')