Exemplo n.º 1
0
    def test_setup(self):
        """
        Test setup(self, sfc, userOpts=dict())
        """
        sf = SpiderFoot(self.default_options)

        module = sfp_dnsdb()
        module.setup(sf, dict())
Exemplo n.º 2
0
    def test_handleEvent(self):
        sf = SpiderFoot(self.default_options)

        module = sfp_dnsdb()
        module.setup(sf, dict())

        target_value = "example target value"
        target_type = "IP_ADDRESS"
        target = SpiderFootTarget(target_value, target_type)
        module.setTarget(target)

        event_type = "ROOT"
        event_data = "example data"
        event_module = ""
        source_event = ""
        evt = SpiderFootEvent(event_type, event_data, event_module,
                              source_event)

        result = module.handleEvent(evt)

        self.assertIsNone(result)
Exemplo n.º 3
0
 def test_producedEvents_should_return_list(self):
     module = sfp_dnsdb()
     self.assertIsInstance(module.producedEvents(), list)
Exemplo n.º 4
0
 def test_opts(self):
     module = sfp_dnsdb()
     self.assertEqual(len(module.opts), len(module.optdescs))
Exemplo n.º 5
0
 def test_setup(self):
     sf = SpiderFoot(self.default_options)
     module = sfp_dnsdb()
     module.setup(sf, dict())