'Test we handle the cases for when a time service is running or not.'

def testTimeSyncRunning(self):

    found = ['Expected    state    was    not    found']
    bad = [('foo', 233, ['/usr/local/foo', '-flags'])]
    good = [('ntpd', 42, ['/usr/sbin/ntpd', '-p', '/var/run/ntpd.pid', '-g', '-u', '117:125'])]
    self.assertCheckDetectedAnom('TIME-SYNC-RUNNING', self.RunChecks(self.GenProcessData(bad)), 'Missing    attribute:    A    time    synchronization    service    is    not    running.', found)
    self.assertCheckUndetected('TIME-SYNC-RUNNING', self.RunChecks(self.GenProcessData(good)))
