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 7ae5dfd commit f770635Copy full SHA for f770635
src/tests/test_protocol.py
@@ -2,6 +2,7 @@
2
Tests for common protocol functions
3
"""
4
5
+import sys
6
import unittest
7
8
from pybitmessage import protocol, state
@@ -52,6 +53,10 @@ def test_check_local(self):
52
53
self.assertFalse(protocol.checkIPAddress(globalhost, True))
54
self.assertEqual(protocol.checkIPAddress(globalhost), '8.8.8.8')
55
56
+ @unittest.skipIf(
57
+ sys.hexversion >= 0x3000000, 'this is still not working with python3')
58
+ def test_check_local_socks(self):
59
+ """The SOCKS part of the local check"""
60
self.assertTrue(
61
not protocol.checkSocksIP('127.0.0.1')
62
or state.socksIP)
0 commit comments