Can use:

```
(testpath/'test.d).write <<-EOF.undent
...
```