It's too bad we wound up adding another of these fragile style of tests where we create & modify temp files... I definitely agree with @iwehrman that it would be great to use the mock filesystem for this sort of thing in the future.  Should we spin off a bug or Trello card about that?