Exemplo n.º 1
0
 def test_render_purchase_form_html(self):
     # Verify that the HTML form renders with the payment URL specified
     # in the test settings.
     # This does NOT test that all the form parameters are correct;
     # we verify that by testing `get_signed_purchase_params()` directly.
     html = render_purchase_form_html(self.order, callback_url=self.CALLBACK_URL)
     self.assertIn('<form action="/shoppingcart/payment_fake" method="post">', html)
     self.assertIn('transaction_uuid', html)
     self.assertIn('signature', html)
     self.assertIn(self.CALLBACK_URL, html)
 def test_render_purchase_form_html(self):
     # Verify that the HTML form renders with the payment URL specified
     # in the test settings.
     # This does NOT test that all the form parameters are correct;
     # we verify that by testing `get_signed_purchase_params()` directly.
     html = render_purchase_form_html(self.order, callback_url=self.CALLBACK_URL)
     self.assertIn('<form action="/shoppingcart/payment_fake" method="post">', html)
     self.assertIn('transaction_uuid', html)
     self.assertIn('signature', html)
     self.assertIn(self.CALLBACK_URL, html)