Ejemplo n.º 1
0
 def test_dontignorepeer(self):
     """
     The remaining peer lines in the test data shouldn't be ignored
     """
     for s in peerlines.split('\n')[6:]:
         self.assertTrue(NTPPeers.validpeer(NTPPeers.peerline(s)))
Ejemplo n.º 2
0
 def test_dontignorepeer(self):
     """
     The remaining peer lines in the test data shouldn't be ignored
     """
     for s in peerlines.split('\n')[6:]:
         self.assertTrue(NTPPeers.validpeer(NTPPeers.peerline(s)))
Ejemplo n.º 3
0
 def test_ignorepeer(self):
     """
     The first 6 peer lines in the test data should be ignored
     """
     for s in peerlines.split('\n')[0:5]:
         self.assertFalse(NTPPeers.validpeer(NTPPeers.peerline(s)))
Ejemplo n.º 4
0
 def test_ignorepeer(self):
     """
     The first 6 peer lines in the test data should be ignored
     """
     for s in peerlines.split('\n')[0:5]:
         self.assertFalse(NTPPeers.validpeer(NTPPeers.peerline(s)))