def test_npl(self): npl(self.phenny, None) out = self.phenny.say.call_args[0][0] m = re.match('^.* - ntp1.npl.co.uk$', out, flags=re.UNICODE) self.assertTrue(m)
def test_npl(self, mock_time): if not is_up('http://npl.co.uk'): self.skipTest('NPL NTP server is down, skipping test.') npl(self.phenny, None) out = self.phenny.say.call_args[0][0] m = re.match('^.* - ntp1.npl.co.uk$', out, flags=re.UNICODE) self.assertTrue(m)