'Each time we call Info.set_name during a test (and only during tests,
not run when the user is running w3af) we check if the name of the
vulnerability being set is actually in the vuln.py database or not,
if it\'s not we append it to a file called /tmp/missing-vulndb.txt
This test asserts that the file:
* Doesn\'t exist
* Is empty
* Fail if not
Since we want to run this test at the end, we tag it as ci_fails for the
main running to ignore it, but then we run it manually from circle.yml'

@attr('ci_ignore')
def test_vuln_updated(self):

    missing = os.path.join(ARTIFACTS_DIR, 'missing-vulndb.txt')
    if (not os.path.exists(missing)):
        return
    missing_list = []
    for line in file(missing):
        line = line.strip()
        if (not line):
            continue
        missing_list.append(line)
    missing_list = list(set(missing_list))
    missing_list.sort()
    self.maxDiff = None
    self.assertEqual(missing_list, [])
