def test_connect_ok_set_socket_timeout(self): socket_timeout = 0.01 connection = connect(self.alias, host=self.host, port=self.port, space=self.space, socket_timeout=socket_timeout) self.assert_connection(connection, self.host, self.port) self.assertEqual(connection.socket_timeout, socket_timeout)
def test_connect_ok_set_socket_timeout(self): socket_timeout = 0.01 connection = connect( self.alias, host=self.host, port=self.port, space=self.space, socket_timeout=socket_timeout ) self.assert_connection(connection, self.host, self.port) self.assertEqual(connection.socket_timeout, socket_timeout)
def test_connect_ok(self): connection = connect( self.alias, host=self.host, port=self.port, space=self.space ) self.assert_connection(connection, self.host, self.port)
def test_get_connection_with_reconnect(self): connect( self.alias, host=self.host, port=self.port, space=self.space ) connection = get_connection(self.alias, reconnect=True) self.assert_connection(connection, self.host, self.port)
def test_connect_ok(self): connection = connect(self.alias, host=self.host, port=self.port, space=self.space) self.assert_connection(connection, self.host, self.port)
def test_get_connection_with_reconnect(self): connect(self.alias, host=self.host, port=self.port, space=self.space) connection = get_connection(self.alias, reconnect=True) self.assert_connection(connection, self.host, self.port)