Skip to content

Commit

Permalink
Fixed test_transport_pyamqplib, localhost != 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EnTeQuAk committed Aug 28, 2011
1 parent 982cffc commit b5bfb42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kombu/tests/test_transport_pyamqplib.py
Expand Up @@ -19,12 +19,12 @@ class Transport(pyamqplib.Transport):

c = BrokerConnection(port=None, transport=Transport).connect()
self.assertEqual(c["host"],
"localhost:%s" % (Transport.default_port, ))
"127.0.0.1:%s" % (Transport.default_port, ))

def test_custom_port(self):

class Transport(pyamqplib.Transport):
Connection = MockConnection

c = BrokerConnection(port=1337, transport=Transport).connect()
self.assertEqual(c["host"], "localhost:1337")
self.assertEqual(c["host"], "127.0.0.1:1337")

0 comments on commit b5bfb42

Please sign in to comment.