[TIP] virtual filesystem

Barry Warsaw barry at python.org
Wed Dec 7 11:51:52 PST 2011

On Dec 07, 2011, at 04:30 PM, Jonathan Lange wrote:

>bzrlib[1] takes the approach of abstracting out the filesystem using
>what it calls "Transports". It's not really the filesystem, it's
>actually also for FTP, HTTP etc. Anyway, they have a MemoryTransport,
>which never actually hits disk at all, and is great for testing. I've
>found myself using this from bzrlib in other projects.
>They prevent interface skew by having one set of tests that run
>against every transport implementation. Whenever they discover some
>buggy behaviour variance, they add tests to this "interface suite".

Sound like it could make a good candidate for refactoring out into a separate
library. <wink>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20111207/d3dfc3d9/attachment.pgp>

More information about the testing-in-python mailing list