Esempio n. 1
0
def test_category_name(resp, category):
    assert_contains(resp, category.name)
Esempio n. 2
0
def test_page_link(resp, pages):
    for page in pages:
        assert_contains(resp, page.url)
Esempio n. 3
0
def test_page_titulo(resp, pages):
    for page in pages:
        assert_contains(resp, page.titulo)
Esempio n. 4
0
def test_link_categorias(resp, categories):
    for category in categories:
        assert_contains(resp, category.get_absolute_url())
Esempio n. 5
0
def test_nome_das_categorias(resp, categories):
    for categoria in categories:
        assert_contains(resp, categoria.name)
Esempio n. 6
0
def test_image_shown(resp):
    assert_contains(resp, '<img src="')
Esempio n. 7
0
def test_title(resp):
    assert_contains(resp, 'Rango')