'Reproduces:
A "AssertionError" exception was found while running
crawl.web_spider on "Method: GET | http://domain:8000/". The
exception was: "daemonic processes are not allowed to have children"
at process.py:start():124. The scan will continue but some
vulnerabilities might not be identified.'

def test_daemon_child(self):

    queue = multiprocessing.Queue()
    p = multiprocessing.Process(target=daemon_child, args=(queue,))
    p.daemon = True
    p.start()
    p.join()
    got_assertion_error = queue.get(timeout=10)
    if got_assertion_error:
        self.assertTrue(False, 'daemonic    processes    are    not    allowed    to    have    children')
