'Tests for the asertCheckUndetected() method.'

def testAssertCheckUndetected(self):

    anomaly = {'finding': ['Adware    2.1.1    is    installed'], 'symptom': 'Found:    Malicious    software.', 'type': 'ANALYSIS_ANOMALY'}
    no_anomaly = {'SW-CHECK': checks.CheckResult(check_id='SW-CHECK')}
    self.assertCheckUndetected('SW-CHECK', no_anomaly)
    other_anomaly = {'SW-CHECK': checks.CheckResult(check_id='SW-CHECK'), 'OTHER': checks.CheckResult(check_id='OTHER', anomaly=rdf_anomaly.Anomaly(**anomaly))}
    self.assertCheckUndetected('SW-CHECK', other_anomaly)
    has_anomaly = {'SW-CHECK': checks.CheckResult(check_id='SW-CHECK', anomaly=rdf_anomaly.Anomaly(**anomaly))}
    self.assertRaises(AssertionError, self.assertCheckUndetected, 'SW-CHECK', has_anomaly)
