

def test_get_site_ndt_ips_valid_ndt_slices(self):
    self.create_mock_dns_lookup_result('ndt.iupui.mlab1.nuq01.measurement-lab.org', '1.1.1.1')
    self.create_mock_dns_lookup_result('ndt.iupui.mlab2.nuq01.measurement-lab.org', '1.1.1.2')
    self.create_mock_dns_lookup_result('ndt.iupui.mlab3.nuq01.measurement-lab.org', '1.1.1.3')
    self.mock.ReplayAll()
    expected_ips = ['1.1.1.1', '1.1.1.2', '1.1.1.3']
    resolver = mlab.MLabSiteResolver()
    self.assertListEqual(expected_ips, resolver.get_site_ndt_ips('nuq01'))
    self.mock.VerifyAll()

dataset/ETHPy150Open m-lab/telescope/tests/test_mlab.py MLabTest.test_get_site_ndt_ips_valid_ndt_slices/original