def test_getmetrics(self): p = NTPPeers(alllines) metrics = p.getmetrics() self.assertEqual(metrics['syncpeer'], 1)
def test_getmetrics(self): p = NTPPeers(alllines) metrics = p.getmetrics() self.assertEqual(metrics['sync'], 1)
def test_getmetrics(self): """Ensure the sync metric for parsed peer lines matches the expected values.""" p = NTPPeers(alllines) metrics = p.getmetrics() self.assertEqual(metrics['sync'], 1)