def test_maas_funky_dig_resolution(self, spm): spm.return_value = "'10-0-10-55.maas.\n10.0.10.55" ip = common.resolve_hostname_to_ip('localhost') self.assertEqual('10.0.10.55', ip)
def test_hostname_resolution(self): ip = common.resolve_hostname_to_ip('localhost') self.assertEqual('127.0.0.1', ip)