diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py index 23663295c2dffbd47e752fee1c0478d07fa7fd77..68ba5667ed49ff236253ca7ed736a74ab05eabbb 100755 --- a/tests/test_dns_records.py +++ b/tests/test_dns_records.py @@ -95,7 +95,7 @@ services_info = ( for conf_name, default_domain, package in services_info: domain = conf.get(conf_name) - if domain and domain != default_domain: + if domain and domain not in ('localhost', default_domain): # check that the service is installed on this system status, output = subprocess.getstatusoutput('dpkg -s %s' % package) if status == 0: