示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)