'If local IPs are the same as a node\'s IPs that node is the one
chosen.'

def test_local_ips_equal_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')}
    reported_ips = {u'server1': local_ips_1, u'server2': local_ips_2}
    self.assertEqual((_get_compute_id(local_ips_1, reported_ips), _get_compute_id(local_ips_2, reported_ips)), (u'server1', u'server2'))
