Esempio n. 1
0
 def test_getmetrics(self):
     p = NTPPeers(alllines)
     metrics = p.getmetrics()
     self.assertEqual(metrics['syncpeer'], 1)
Esempio n. 2
0
 def test_getmetrics(self):
     p = NTPPeers(alllines)
     metrics = p.getmetrics()
     self.assertEqual(metrics['sync'], 1)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)