'L{Node.isEqualToNode} returns C{True} if and only if passed a L{Node}
with the same children.'

def test_isNodeEqualTo(self):

    node = microdom.Node(object())
    self.assertTrue(node.isEqualToNode(node))
    another = microdom.Node(object())
    self.assertTrue(node.isEqualToNode(another))
    node.appendChild(microdom.Node(object()))
    self.assertFalse(node.isEqualToNode(another))
    another.appendChild(microdom.Node(object()))
    self.assertTrue(node.isEqualToNode(another))
    node.firstChild().appendChild(microdom.Node(object()))
    self.assertFalse(node.isEqualToNode(another))
    another.firstChild().appendChild(microdom.Node(object()))
    self.assertTrue(node.isEqualToNode(another))
