'Test for default loadbalacing policy
test_token_aware_is_used_by_default tests that the default loadbalancing policy is policies.TokenAwarePolicy.
It creates a simple Cluster and verifies that the default loadbalancing policy is TokenAwarePolicy if the
murmur3 C extension is found. Otherwise, the default loadbalancing policy is DCAwareRoundRobinPolicy.
@since 2.6.0
@jira_ticket PYTHON-160
@expected_result TokenAwarePolicy should be the default loadbalancing policy.
@test_category load_balancing:token_aware'

def test_token_aware_is_used_by_default(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    if (murmur3 is not None):
        self.assertTrue(isinstance(cluster.load_balancing_policy, TokenAwarePolicy))
    else:
        self.assertTrue(isinstance(cluster.load_balancing_policy, DCAwareRoundRobinPolicy))
    cluster.shutdown()
