Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')