Update test_replica_set.py to reflect new ability to make direct connection to an arbiter.

This commit is contained in:
T. Dampier 2012-04-11 17:45:27 -07:00 committed by behackett
parent 891a24284c
commit 43e17688bb

View File

@ -94,8 +94,11 @@ class TestSecondaryConnection(unittest.TestCase):
# Test direct connection to an arbiter
secondary_host = replset_tools.get_arbiters()[0]
self.assertRaises(
ConnectionFailure, Connection, secondary_host, use_greenlets=use_greenlets)
host, port = replset_tools.arbiters()[0].split(':')
port = int(port)
conn = Connection(host, port)
self.assertEqual(host, conn.host)
self.assertEqual(port, conn.port)
def tearDown(self):
self.c.close()