def METHOD_NAME(self, tag, tname, string=None, size=None, **kwargs):
    """Helper for checking HTML tree nodes"""
    self.assertIsInstance(tag, html.Tag)
    self.assertEqual(tag.name, tname)
    self.assertAttributes(tag, **kwargs)
    if size is not None:
        self.assertSize(tag, size)
    if string is not None:
        self.assertSize(tag, 1)
        self.assertHTMLString(tag(0), string)