def test_optsraw_should_return_a_list(self): opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(self.web_default_options, opts) opts_raw = sfwebui.optsraw() self.assertIsInstance(opts_raw, list) self.assertEqual(opts_raw[0], 'SUCCESS')
def test_optsraw_should_return_bytes(self): """ Test optsraw(self) """ opts = self.default_options opts['__modules__'] = dict() sfwebui = SpiderFootWebUi(opts) opts_raw = sfwebui.optsraw() self.assertIsInstance(opts_raw, bytes)