'Taken from syndication/tests.py.'

def assertChildNodes(self, elem, expected):

    actual = set([n.nodeName for n in elem.childNodes])
    expected = set(expected)
    self.assertEqual(actual, expected)
