mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
utils.dns tests: pylint fixes
This commit is contained in:
parent
f2b989b950
commit
4f4f25c91f
@ -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('''\
|
||||
|
Loading…
Reference in New Issue
Block a user