Relax Flask app unit tests by ignoring whitespace
The tests checking the presence of some contents in the HTML
are extremely brittle, but we can make it a bit less so by
ignoring whitespace.
Here we replace the use of assertIn with a custom assertion
method which first strips away all whitespace from the strings.