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)))
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)))