'L{Element.isEqualToNode} returns C{True} if and only if passed a
L{Element} with the same C{nodeName}, C{namespace}, C{childNodes}, and
C{attributes}.'

def test_isEqualToNode(self):

    self.assertTrue(microdom.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(microdom.Element('foo', {'a': 'b'}, object(), namespace='bar')))
    self.assertFalse(microdom.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(microdom.Element('bar', {'a': 'b'}, object(), namespace='bar')))
    self.assertFalse(microdom.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(microdom.Element('foo', {'a': 'b'}, object(), namespace='baz')))
    one = microdom.Element('foo', {'a': 'b'}, object(), namespace='bar')
    two = microdom.Element('foo', {'a': 'b'}, object(), namespace='bar')
    two.appendChild(microdom.Node(object()))
    self.assertFalse(one.isEqualToNode(two))
    self.assertFalse(microdom.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(microdom.Element('foo', {'a': 'c'}, object(), namespace='bar')))
