Beispiel #1
0
 def setUp(self):
     super(TestTransportHostCustomisation, self).setUp()
     self.host1 = transport.TransportHost("host1", 5662, "user", "pass")
     self.host2 = transport.TransportHost("host1", 5662, "user", "pass")
     self.host3 = transport.TransportHost("host1", 5663, "user", "pass")
     self.host4 = transport.TransportHost("host1", 5662, "user2", "pass")
     self.host5 = transport.TransportHost("host1", 5662, "user", "pass2")
     self.host6 = transport.TransportHost("host2", 5662, "user", "pass")
 def current(self):
     if len(self._entries):
         return self._entries[self._current]
     else:
         return transport.TransportHost(hostname="localhost", port=5672)