[socal-piggies] Mocking sockets

Jathan McCollum jathan at gmail.com
Mon Jul 30 16:38:20 PDT 2012


I have a need to mock the socket module, but without actually importing it
first. I know some pretty sophisticated mocking can be done with Mox, but
it requires that you import the real module into the namespace first.

I am doing some work on an embedded system that doesn't have _socket.so,
which means I can't actually import the socket module, but I need to do
some mocking of connections.

Anyone have any pointers? Thanks in advance!

-- 
Jathan.
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/socal-piggies/attachments/20120730/6c2ac958/attachment.html>


More information about the socal-piggies mailing list