utils.dns tests: pylint fixes

This commit is contained in:
Ronald van Zantvoort 2018-02-26 14:15:36 +01:00
parent f2b989b950
commit 4f4f25c91f
No known key found for this signature in database
GPG Key ID: D3DE53B7EFF75061

View File

@ -16,21 +16,10 @@ import salt.utils.dns
from salt.utils.dns import _to_port, _tree, _weighted_order, _data2rec, _data2rec_group
from salt.utils.dns import _lookup_gai, _lookup_dig, _lookup_drill, _lookup_host, _lookup_nslookup
# Integrations
try:
import dns.resolver
HAS_DNSPYTHON = True
except ImportError:
HAS_DNSPYTHON = False
# Testing
from tests.support.unit import skipIf, TestCase
from tests.support.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch
# Debug
# import pprint
# ppr = pprint.PrettyPrinter(indent=2).pprint
class DNShelpersCase(TestCase):
'''
@ -526,7 +515,6 @@ class DNSlookupsCase(TestCase):
self._test_cmd_lookup(_lookup_host, wrong_type=wrong_type, wrong=wrongs, right=rights, empty=empty)
def test_nslookup(self):
# all nslookup returns look like this
RES_TMPL = textwrap.dedent('''\