예제 #1
0
파일: ping.py 프로젝트: WorldIRC/WISH
 def test_remote_ping(self):
     s = StateDouble()
     r = ServerDouble()
     c = PingHandler(s, r)
     c.handle((1, None), ["AD", "test2.example.com"])
     self.assertEquals([("AD", "test2.example.com")], s.insight)
     self.assertFalse(r.pung)
예제 #2
0
파일: ping.py 프로젝트: WorldIRC/WISH
 def test_remote_ping_local_dest(self):
     s = StateDouble()
     r = ServerDouble()
     c = PingHandler(s, r)
     c.handle((1, None), ["AD", "test.example.com"])
     self.assertEquals([], s.insight)
     self.assertTrue(r.pung)
예제 #3
0
파일: ping.py 프로젝트: WorldIRC/WISH
 def test_local_ping(self):
     s = StateDouble()
     r = ServerDouble()
     c = PingHandler(s, r)
     c.handle((1, None), ["AC"])
     self.assertEquals([], s.insight)
     self.assertTrue(r.pung)