[socal-piggies] Mocking sockets

Andrew Kou andrew.kou at gmail.com
Mon Jul 30 18:18:13 PDT 2012


Jathan,

What requirements do you have of the mocked object?

- Andrew



On Mon, Jul 30, 2012 at 4:38 PM, Jathan McCollum <jathan at gmail.com> wrote:

> 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.
> --
>
> _______________________________________________
> socal-piggies mailing list
> socal-piggies at lists.idyll.org
> http://lists.idyll.org/listinfo/socal-piggies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/socal-piggies/attachments/20120730/faf544c9/attachment.htm>


More information about the socal-piggies mailing list