'Ensure check detects if /etc/(at|cron).allow doesn\'t exist.'

def testCronAllowDoesNotExistCheck(self):

    check_id = 'CIS-AT-CRON-ALLOW-DOES-NOT-EXIST'
    artifact = 'CronAtAllowDenyFiles'
    data1 = [self.CreateStat('/etc/cron.allow', 0, 0, 33184), self.CreateStat('/etc/crondallow', 200, 60, 33184), self.CreateStat('/etc/at.allow', 0, 0, 33184), self.CreateStat('/etc/mo/cron.allow', 300, 70, 33184), self.CreateStat('/root/at.allow', 400, 70, 33184)]
    data2 = [self.CreateStat('/etc/at.allow', 0, 0, 33184), self.CreateStat('/etc/cronMallow', 200, 60, 33184), self.CreateStat('/etc/cron/cron.allow', 300, 70, 33184), self.CreateStat('/home/user1/at.allow', 400, 70, 33184)]
    data3 = [self.CreateStat('/etc/random/at.allow', 0, 0, 33184), self.CreateStat('/etc/cronZallow', 200, 60, 33184), self.CreateStat('/etc/cron/cron.allow', 300, 70, 33184), self.CreateStat('/home/user1/at.allow', 400, 70, 33184)]
    sym_cron_allow = 'Missing    attribute:    /etc/cron.allow    does    not    exist    on    the    system.'
    sym_at_allow = 'Missing    attribute:    /etc/at.allow    does    not    exist    on    the    system.'
    found = ['Expected    state    was    not    found']
    results = self.GenResults([artifact], [data1])
    self.assertCheckUndetected(check_id, results)
    results = self.GenResults([artifact], [data2])
    self.assertCheckDetectedAnom(check_id, results, sym_cron_allow, found)
    results = self.GenResults([artifact], [data3])
    self._CheckMultipleSymPerCheck(check_id, results, [sym_cron_allow, sym_at_allow], [found, found])
    results = self.GenResults([artifact], [None])
    self._CheckMultipleSymPerCheck(check_id, results, [sym_cron_allow, sym_at_allow], [found, found])
