def METHOD_NAME(self):
    output = StringIO()
    writer = HtmlWriter(output)
    writer.start('b')
    writer.end('b')
    writer.element('i')
    assert_equal(output.getvalue(), '<b>\n</b>\n<i></i>\n')