'Tests if one or more anomalies contain the expected symptom string.'

def _HasSymptom(self, anomalies, sym):

    if (sym is None):
        return True
    rslts = {rslt.symptom: rslt for rslt in anomalies}
    rslt = rslts.get(sym)
    self.assertTrue((rslt is not None), ("Didn't    get    expected    symptom    string    '%s'    in    '%s'" % (sym, ','.join(rslts))))
