'Since the API does not support concurrent scans we need to cleanup
everything before starting a new scan/test.'

def tearDown(self):

    for (scan_id, scan_info) in SCANS.iteritems():
        if (scan_info is not None):
            scan_info.w3af_core.stop()
            scan_info.w3af_core.cleanup()
            SCANS[scan_id] = None
