'Test the flow returns parser results.'

def testChecksProcessResultContext(self):

    self.SetLinuxKB()
    (_, results) = self.RunFlow()
    exp = 'Found:    Sshd    allows    protocol    1.'
    self.assertCheckDetectedAnom('SSHD-CHECK', results, exp)
    exp = 'Found:    The    filesystem    supports    stat.'
    found = ['/etc/ssh/sshd_config']
    self.assertCheckDetectedAnom('SSHD-PERMS', results, exp, found)
    exp = 'Found:    Unix    system    account    anomalies.'
    found = ['Accounts    with    invalid    gid.', 'Mismatched    passwd    and    shadow    files.']
    self.assertCheckDetectedAnom('ODD-PASSWD', results, exp, found)
    self.assertCheckUndetected('SHADOW-HASH', results)
    self.assertCheckUndetected('SW-CHECK', results)
