Beispiel #1
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)
Beispiel #2
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)
Beispiel #3
0
 def test_get_connection_non_existent_alias(self):
     non_existent_alias = 'unknown'
     with self.assertRaises(ValueError):
         get_connection(non_existent_alias)
Beispiel #4
0
 def test_get_connection_non_existent_alias(self):
     non_existent_alias = 'unknown'
     with self.assertRaises(ValueError):
         get_connection(non_existent_alias)