'If local IPs are a superset of a node\'s IPs that node is the one
chosen.
We expect local IPs to include addresses like 127.0.0.1 which
won\'t show up in reported IPs for remote nodes.'

def test_local_ips_superset_of_reported_ips(self):

    local_ips_1 = {ipaddress_from_string('192.0.0.1'), ipaddress_from_string('10.0.0.1')}
    local_ips_2 = {ipaddress_from_string('10.0.0.2'), ipaddress_from_string('192.0.0.2')}
    reported_ips = {u'server1': {ipaddress_from_string('192.0.0.1')}, u'server2': {ipaddress_from_string('192.0.0.2')}}
    self.assertEqual((_get_compute_id(local_ips_1, reported_ips), _get_compute_id(local_ips_2, reported_ips)), (u'server1', u'server2'))
