def METHOD_NAME(self, node, name, text=None, attrs={}):
    if node is None:
        node = self._get_root()
    assert_equal(node.tag, name)
    if text is not None:
        assert_equal(node.text, text)
    assert_equal(node.attrib, attrs)