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