'L{Document.isEqualToNode} returns C{True} if and only if passed a
L{Document} with the same C{doctype} and C{documentElement}.'

def test_isEqualToNode(self):

    document = microdom.Document()
    self.assertTrue(document.isEqualToNode(document))
    another = microdom.Document()
    self.assertTrue(document.isEqualToNode(another))
    document.doctype = self.doctype
    self.assertFalse(document.isEqualToNode(another))
    another.doctype = self.doctype
    self.assertTrue(document.isEqualToNode(another))
    document.appendChild(microdom.Node(object()))
    self.assertFalse(document.isEqualToNode(another))
    another.appendChild(microdom.Node(object()))
    self.assertTrue(document.isEqualToNode(another))
    document.documentElement.appendChild(microdom.Node(object()))
    self.assertFalse(document.isEqualToNode(another))
