'Test Host class is ordered consistently
@since 3.9
@jira_ticket PYTHON-714
@expected_result the hosts are ordered correctly
@test_category data_types'

def test_host_order(self):

    hosts = [Host(addr, SimpleConvictionPolicy) for addr in ('127.0.0.1', '127.0.0.2', '127.0.0.3', '127.0.0.4')]
    hosts_equal = [Host(addr, SimpleConvictionPolicy) for addr in ('127.0.0.1', '127.0.0.1')]
    hosts_equal_conviction = [Host('127.0.0.1', SimpleConvictionPolicy), Host('127.0.0.1', ConvictionPolicy)]
    self._check_sequence_consistency(hosts)
    self._check_sequence_consistency(hosts_equal, equal=True)
    self._check_sequence_consistency(hosts_equal_conviction, equal=True)
