def test_append(self): text = Tag('strong', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<strong>Chuck Norris</strong> wins!' assert text.append(' wins!').render_as('html') == '<strong>Chuck Norris wins!</strong>' text = HRef('/', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<a href="/">Chuck Norris</a> wins!' assert text.append(' wins!').render_as('html') == '<a href="/">Chuck Norris wins!</a>'
def test_append(self): text = Tag('strong', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<strong>Chuck Norris</strong> wins!' assert text.append(' wins!').render_as('html') == '<strong>Chuck Norris wins!</strong>' text = HRef('/', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<a href="/">Chuck Norris</a> wins!' assert text.append(' wins!').render_as('html') == '<a href="/">Chuck Norris wins!</a>'
def test_append(self): text = Tag('strong', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<strong>Chuck Norris</strong> wins!' assert text.append(' wins!').render_as('html') == '<strong>Chuck Norris wins!</strong>' text = Tag('em', 'Look here') assert (text + '!').render_as('html') == '<em>Look here</em>!' assert text.append('!').render_as('html') == '<em>Look here!</em>'
def test_append(self): text = Tag('strong', 'Chuck Norris') assert (text + ' wins!').render_as('html') == '<strong>Chuck Norris</strong> wins!' assert text.append(' wins!').render_as('html') == '<strong>Chuck Norris wins!</strong>' text = Tag('em', 'Look here') assert (text + '!').render_as('html') == '<em>Look here</em>!' assert text.append('!').render_as('html') == '<em>Look here!</em>'