예제 #1
0
파일: tests.py 프로젝트: humw/ToolBox
 def test_all_alive(self):
     results = probe(alive_servers)
     self.assertIn(True, [x.is_alive for x in results])
     self.assertNotIn(False, [x.is_alive for x in results])
예제 #2
0
파일: tests.py 프로젝트: humw/ToolBox
 def test_mix(self):
     results = probe(mix)
     self.assertEqual(len(results), 199)
     self.assertIn(True, [x.is_alive for x in results])
     self.assertIn(False, [x.is_alive for x in results])