'Find XSS in the content of an uploaded file
https://github.com/andresriancho/w3af/issues/3149'

def test_find_in_file_upload_content(self):

    self.scan_file_upload_fuzz_files()
    target_path = get_php_moth_http('/audit/file_upload/echo_content/')
    xss_vulns = self.kb.get('xss', 'xss')
    kb_data = self.normalize_kb_data(xss_vulns)
    EXPECTED = [('txt_uploader.php', 'txt_file', ['txt_file'])]
    expected_data = self.normalize_expected_data(target_path, EXPECTED)
    self.assertEquals(set(expected_data), set(kb_data))
