def _assertStringsEqualIgnoringWhitespace(self, s1: str, s2: str):
        """Custom assertion to compare strings ignoring whitespace."""

        def remove_whitespace(s: str) -> str:
            return re.sub(r'\s+', '', s)

        cleaned_s1 = remove_whitespace(s1)
        cleaned_s2 = remove_whitespace(s2)
        self.assertEqual(cleaned_s1, cleaned_s2)
Custom assertion to compare strings ignoring whitespace.
tests/integ_tests/core/index_management/test_services_xml.py