예제 #1
0
파일: test_socks.py 프로젝트: nskinkel/oppy
 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
파일: test_socks.py 프로젝트: zyk2290/oppy
 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
파일: test_socks.py 프로젝트: nskinkel/oppy
 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
파일: test_socks.py 프로젝트: zyk2290/oppy
 def test_parseRequest_host(self, mock_h):
     ret = socks._parseRequest('test', '\x03')
     mock_h.assert_called_once_with('test')
     self.assertEqual(ret, 'ret')