'DAV is configured but the directory doesn\'t have the file-system permissions
to allow the Apache process to write to it.'

@attr('ci_fails')
def test_no_privileges(self):

    cfg = self._run_configs['cfg']
    self._scan(self.target_no_privs, cfg['plugins'])
    vulns = self.kb.get('dav', 'dav')
    self.assertEquals(len(vulns), 2, vulns)
    iname = 'DAV    incorrect    configuration'
    info_no_privs = [i for i in vulns if (i.get_name() == iname)][0]
    vname = 'Insecure    DAV    configuration'
    vuln_propfind = [v for v in vulns if (v.get_name() == vname)][0]
    info_url = str(info_no_privs.get_url().get_domain_path())
    vuln_url = str(vuln_propfind.get_url().get_domain_path())
    self.assertEquals(self.target_no_privs, info_url)
    self.assertEquals(self.target_no_privs, vuln_url)
