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