def test_bleach_if_enabled(): assert tinyblog_bleach( '<div class="western">bar</div>' ) == 'bar'
def test_paragraphs_allowed(): assert tinyblog_bleach( '<p class="western">foo</p>' ) == '<p>foo</p>'
def test_no_bleach_if_disabled(): assert tinyblog_bleach( '<div class="western">bar</div>' ) == '<div class="western">bar</div>'
def bleached_teaser(self): return tinyblog_bleach(self.teaser_html)
def test_links_work(): assert tinyblog_bleach( '<a class="cat" href="bar">foo</a>' ) == '<a href="bar">foo</a>'
def test_overriding_allowed_attributes(): assert tinyblog_bleach( '<p class="western">bar</p>' ) == '<p class="western">bar</p>'
def test_paragraphs_allowed(): assert tinyblog_bleach('<p class="western">foo</p>') == '<p>foo</p>'
def test_no_classes(): assert tinyblog_bleach( '<strong class="western">foo</strong>') == '<strong>foo</strong>'
def bleached_full_text(self): return tinyblog_bleach(self.full_text())
def test_notags(): assert tinyblog_bleach('foobar') == 'foobar'
def test_overriding_allowed_attributes(): assert tinyblog_bleach( '<p class="western">bar</p>') == '<p class="western">bar</p>'
def test_overriding_allowed_tags(): assert tinyblog_bleach( '<div class="western">bar</div>') == '<div>bar</div>'
def test_bleach_if_enabled(): assert tinyblog_bleach('<div class="western">bar</div>') == 'bar'
def test_no_bleach_if_disabled(): assert tinyblog_bleach( '<div class="western">bar</div>') == '<div class="western">bar</div>'
def test_overriding_allowed_tags(): assert tinyblog_bleach( '<div class="western">bar</div>' ) == '<div>bar</div>'
def bleached_text(self): return tinyblog_bleach(self.text_html)
def test_no_classes(): assert tinyblog_bleach( '<strong class="western">foo</strong>' ) == '<strong>foo</strong>'
def test_links_work(): assert tinyblog_bleach( '<a class="cat" href="bar">foo</a>') == '<a href="bar">foo</a>'