Is it possible to apply this test without depending on the OS? This couples the test case to the particular storage backend that uses the filesystem, which will not be present in all configurations of the application.

I ran into this problem on the exporter, and instead of testing for path existence, I would query the db object for the file object itself, open it, and make assertions about the csv contents. I guess that's a little more difficult with photos.