Open GoogleCodeExporter opened 9 years ago
You are of course correct, mock objects do not implement file *behaviour*. For
mocking out a whole filesystem some objects more complex than "dumb" mock
objects are needed. There are projects that provide in memory filesystem apis -
you could use patch (or dependency injection) to put these in place for your
tests.
Alternatively, if you want the behaviour in mock and it can be implemented
*simply* then I would consider a patch.
Original comment by fuzzyman
on 4 Oct 2012 at 10:43
Thanks, I'll tinker with this as time permits and report back when I have
something for you!
Original comment by tom.ritc...@gmail.com
on 4 Oct 2012 at 4:08
Original issue reported on code.google.com by
tom.ritc...@gmail.com
on 3 Oct 2012 at 8:48