'Test to validate case in which malware is identified while crawling.'

def test_found_vuln(self):

    cfg = self._run_configs['cfg']
    self._scan(cfg['target'], cfg['plugins'])
    findings = kb.kb.get('clamav', 'malware')
    self.assertEqual(len(findings), 4)
    EXPECTED_FILES = ('eicar.com.txt', 'eicar.com', 'eicarcom2.zip', 'eicar_com.zip')
    for finding in findings:
        self.assertIn(finding.get_url().get_file_name(), EXPECTED_FILES)
        self.assertEqual(finding.get_name(), 'Malware    identified')
        self.assertIn('ClamAV    identified    malware', finding.get_desc())
