'Test cluster connection with protocol v5 and beta flag not set
@since 3.7.0
@jira_ticket PYTHON-614
@expected_result client shouldn\'t connect with V5 and no beta flag set
@test_category connection'

@protocolv5
def test_invalid_protocol_version_beta_option(self):

    cluster = Cluster(protocol_version=cassandra.ProtocolVersion.MAX_SUPPORTED, allow_beta_protocol_version=False)
    try:
        with self.assertRaises(NoHostAvailable):
            cluster.connect()
    except Exception as e:
        self.fail('Unexpected    error    encountered    {0}'.format(e.message))
