Пример #1
0
 def test_parseRequest_ipv6(self, mock_p6):
     ret = socks._parseRequest('test', '\x04')
     mock_p6.assert_called_once_with('test')
     self.assertEqual(ret, 'ret')
Пример #2
0
 def test_parseRequest_ipv6(self, mock_p6):
     ret = socks._parseRequest('test', '\x04')
     mock_p6.assert_called_once_with('test')
     self.assertEqual(ret, 'ret')
Пример #3
0
 def test_parseRequest_host(self, mock_h):
     ret = socks._parseRequest('test', '\x03')
     mock_h.assert_called_once_with('test')
     self.assertEqual(ret, 'ret')
Пример #4
0
 def test_parseRequest_host(self, mock_h):
     ret = socks._parseRequest('test', '\x03')
     mock_h.assert_called_once_with('test')
     self.assertEqual(ret, 'ret')