Example #1
0
def test_payment_form(client, campaign, transaction_id, transaction_braintree_selected):
    """
    Test if we can display the payment form (credit card number form) for braintree.
    """
    url = '/pay/{}/{}/'.format('braintree', transaction_id)
    resp = client.get(url)
    assert resp.status_code == 200
    dom = html.fromstring(resp.content)

    # title must be there
    page_title = dom.cssselect('title')[0].text
    assert page_title == 'Pay with Braintree'
Example #2
0
def test_payment_form(client, campaign, transaction_id,
                      transaction_braintree_selected):
    """
    Test if we can display the payment form (credit card number form) for braintree.
    """
    url = '/pay/{}/{}/'.format('braintree', transaction_id)
    resp = client.get(url)
    assert resp.status_code == 200
    dom = html.fromstring(resp.content)

    # title must be there
    page_title = dom.cssselect('title')[0].text
    assert page_title == 'Pay with Braintree'
Example #3
0
 def test_payment_info(self, campaign, transaction_id, client):
     url = reverse(yldt_cash_payment.views.payment_info,
                   args=[transaction_id])
     response = client.get(url)
 def test_payment_info(self, campaign, transaction_id, client):
     url = reverse(yldt_cash_payment.views.payment_info, args=[transaction_id])
     response = client.get(url)