We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a56b0 commit a5b921fCopy full SHA for a5b921f
tests/test_binding.py
@@ -23,6 +23,7 @@
23
import logging
24
import testlib
25
import unittest
26
+import socket
27
28
import splunklib.binding as binding
29
from splunklib.binding import HTTPError, AuthenticationError, UrlEncoded
@@ -288,6 +289,12 @@ def test_unicode_socket(self):
288
289
socket.write("\r\n")
290
socket.close()
291
292
+ def test_socket_gethostbyname(self):
293
+ self.assertTrue(self.context.connect())
294
+ self.context.host = socket.gethostbyname(self.context.host)
295
296
+
297
298
class TestUnicodeConnect(BindingTestCase):
299
def test_unicode_connect(self):
300
opts = self.opts.kwargs.copy()
0 commit comments