def test_forgot_password_link(resp): dj_assert_contains(resp, reverse('password_reset'))
def test_content(content, resp): dj_assert_contains(resp, content)
def test_login_action_link(resp): login_path = reverse('login') dj_assert_contains(resp, f'action="{login_path}"')
def test_contact_content(client, content): response = client.get('/contato/') dj_assert_contains(response, content)
def test_home(client, content): response = client.get('/') dj_assert_contains(response, content)
def test_image_url(resp, galeria): model = galeria[0] dj_assert_contains(resp, model.foto.url)
def test_index_content(resp, content): dj_assert_contains(resp, content)
def test_app_link_in_home(client): response = client.get('/') dj_assert_contains(response, reverse('galeria:index'))