예제 #1
0
    def test_multiple_instances_in_different_dummy_processes(self):
        """
        Create different w3afCore instances, in different threads.

        https://github.com/andresriancho/w3af-module/issues/5
        """
        t = DummyProcess(target=start_w3af_core,
                         args=(self._exception_handler, ))
        t.start()
        t.join()

        self.assertEqual(self._exceptions, [])
예제 #2
0
    def test_multiple_instances_in_different_dummy_processes(self):
        """
        Create different w3afCore instances, in different threads.

        https://github.com/andresriancho/w3af-module/issues/5
        """
        t = DummyProcess(target=start_w3af_core,
                         args=(self._exception_handler,))
        t.start()
        t.join()

        self.assertEqual(self._exceptions, [])
예제 #3
0
 def outer():
     t = DummyProcess(target=start_w3af_core,
                      args=(self._exception_handler, ))
     t.start()
     t.join()
예제 #4
0
 def outer():
     t = DummyProcess(target=start_w3af_core,
                      args=(self._exception_handler,))
     t.start()
     t.join()