def test_category_name(resp, category): assert_contains(resp, category.name)
def test_page_link(resp, pages): for page in pages: assert_contains(resp, page.url)
def test_page_titulo(resp, pages): for page in pages: assert_contains(resp, page.titulo)
def test_link_categorias(resp, categories): for category in categories: assert_contains(resp, category.get_absolute_url())
def test_nome_das_categorias(resp, categories): for categoria in categories: assert_contains(resp, categoria.name)
def test_image_shown(resp): assert_contains(resp, '<img src="')
def test_title(resp): assert_contains(resp, 'Rango')