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_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_get_connection_non_existent_alias(self): non_existent_alias = 'unknown' with self.assertRaises(ValueError): get_connection(non_existent_alias)