Meant to commit this earlier, but it's a basic unit test.
This supports my personal workflow of using vim which places a temporary file in the same directory as the file I'm editing.