Avoid assertRegexpMatches because that is not available in 2.6