def assertChildNodes(self, elem, expected):
        actual = set(n.nodeName for n in elem.childNodes)
        expected = set(expected)
        self.assertEqual(actual, expected)
Taken from syndication/tests.py.
dataset/ETHPy150Open django/django/tests/gis_tests/geoapp/test_sitemaps.py/GeoSitemapTest.assertChildNodes