Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)