[TIP] virtual filesystem
barry at python.org
Wed Dec 7 11:51:52 PST 2011
On Dec 07, 2011, at 04:30 PM, Jonathan Lange wrote:
>bzrlib 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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the testing-in-python