'Test to ensure that you can register a connection from a session
@since 3.8
@jira_ticket PYTHON-649
@expected_result queries should execute appropriately
@test_category object_mapper'

def test_connection_creation_from_session(self):

    cluster = Cluster([CASSANDRA_IP])
    session = cluster.connect()
    connection_name = 'from_session'
    conn.register_connection(connection_name, session=session)
    self.assertIsNotNone(conn.get_connection(connection_name).cluster.metadata.get_host(CASSANDRA_IP))
    self.addCleanup(conn.unregister_connection, connection_name)
    cluster.shutdown()
