This wouldn't work. Both options would fail the test. As in second part of the test I expect that file is not created.

I think it's alright to assume that message is not in file once  ```file.exists()``` returns ```false```.