dedent won't work because it just removes the same amount of space from the start of each line. Also, the spaces at the end of some lines (e.g. line 25) will not be noticeable and might get stripped by some editors. I don't want to have any extra spaces in the string, because then the asserts in the test code will fail!

We could do it by applying a regex to remove space at the start of each line, but that seems more complicated that using a list as written.