'Test cluster context without session context.
@since 3.4
@jira_ticket PYTHON-521
@expected_result Session should be created correctly. Cluster should shutdown outside of context
@test_category configuration'

def test_cluster_no_session(self):

    with Cluster(**self.cluster_kwargs) as cluster:
        session = cluster.connect()
        self.assertFalse(cluster.is_shutdown)
        self.assertFalse(session.is_shutdown)
        self.assertTrue(session.execute('select    release_version    from    system.local')[0])
    self.assertTrue(session.is_shutdown)
    self.assertTrue(cluster.is_shutdown)
