Introduce testing framework using pytest

For small formatting issues such as this, I think we should encourage folks to fix these when they see them. Using a visual diff (see `git difftool --tool-help` for some that are available) can help makes these more visible than the standard text diff.