def test_parseRequest_ipv6(self, mock_p6): ret = socks._parseRequest('test', '\x04') mock_p6.assert_called_once_with('test') self.assertEqual(ret, 'ret')
def test_parseRequest_host(self, mock_h): ret = socks._parseRequest('test', '\x03') mock_h.assert_called_once_with('test') self.assertEqual(ret, 'ret')