def test_home_link(resp): assert_contains( resp, f'<a class="navbar-brand" href="{reverse("home")}">Partyou</a>')
def test_home_content(resp, content): assert_contains(resp, content)
def test_title(resp): assert_contains(resp, '<title>Email</title>')
def test_order_status(resp, order: Order): assert_contains(resp, order.get_status_display())
def test_title(resp): assert_contains(resp, 'PartyouDesafio')
def test_title(resp): assert_contains(resp, '<title>Iniciar sessão</title>')
def test_email_client(resp, order: Order): assert_contains(resp, order.user.email)
def test_login_link(resp): assert_contains( resp, f'<a class="nav-link" href="{reverse("login")}">Acessar</a>')
def test_home_link(resp): assert_contains(resp, f'href="{reverse("base:contact")}">Contato</a>')
def test_product_price(resp, product: Product): assert_contains(resp, (str(product.price)).replace('.', ','))
def test_title(resp): assert_contains(resp, '<title>Registro</title>')
def test_product_description(resp, product: Product): assert_contains(resp, product.description)
def test_product_name(resp, product: Product): assert_contains(resp, product.name)
def test_title(resp): assert_contains(resp, '<title>Partyou - Desafio</title>')
def test_logout_link(resp): assert_contains( resp, f'<a class="nav-link" href="{reverse("logout")}">Sair</a>')
def test_number_of_order(resp, order: Order): assert_contains(resp, order.id)
def test_page_content(content, login_get_resp): assert_contains(login_get_resp, content)
def test_product_quantity(resp, order_product: OrderProduct): assert_contains(resp, order_product.quantity)