Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/d/h/DHTBot-HEAD/dhtbot/test/extensions/test_quarantine.py   DHTBot(Download)
    def test_jail_singlePrisoner(self):
        self.refresh()
        q = Quarantine(self.pc.ping, self.rt)
        n = Node(2**150, ("127.0.0.1", 58))
        q.jail(n)
    def test_jail_singlePrisonerCallBack(self):
        self.refresh()
        q = Quarantine(self.pc.ping, self.rt)
        n = Node(2**30, ("127.0.0.1", 555))
        q.jail(n)
    def test_jail_singlePrisonerErrback(self):
        self.refresh()
        q = Quarantine(self.pc.ping, self.rt)
        n = Node(2**35, ("127.0.0.1", 255))
        q.jail(n)
    def test_jail_singlePrisonerErrbackThenCallback(self):
        self.refresh()
        q = Quarantine(self.pc.ping, self.rt)
        n = Node(2**51, ("127.0.0.1", 9555))
        q.jail(n)
    def test_jail_singlePrisonerErrbackTwice(self):
        self.refresh()
        q = Quarantine(self.pc.ping, self.rt)
        n = Node(2**35, ("127.0.0.1", 255))
        q.jail(n)