本文整理汇总了Python中shop.views.checkout.CheckoutSelectionView.get_billing_and_shipping_selection_form方法的典型用法代码示例。如果您正苦于以下问题:Python CheckoutSelectionView.get_billing_and_shipping_selection_form方法的具体用法?Python CheckoutSelectionView.get_billing_and_shipping_selection_form怎么用?Python CheckoutSelectionView.get_billing_and_shipping_selection_form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shop.views.checkout.CheckoutSelectionView
的用法示例。
在下文中一共展示了CheckoutSelectionView.get_billing_and_shipping_selection_form方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_billing_and_shipping_selection_get
# 需要导入模块: from shop.views.checkout import CheckoutSelectionView [as 别名]
# 或者: from shop.views.checkout.CheckoutSelectionView import get_billing_and_shipping_selection_form [as 别名]
def test_billing_and_shipping_selection_get(self):
view = CheckoutSelectionView(request=self.request)
res = view.get_billing_and_shipping_selection_form()
self.assertNotEqual(res, None)
示例2: test_billing_and_shipping_selection_cached
# 需要导入模块: from shop.views.checkout import CheckoutSelectionView [as 别名]
# 或者: from shop.views.checkout.CheckoutSelectionView import get_billing_and_shipping_selection_form [as 别名]
def test_billing_and_shipping_selection_cached(self):
view = CheckoutSelectionView(request=self.request)
res = view.get_billing_and_shipping_selection_form()
res2 = view.get_billing_and_shipping_selection_form()
self.assertEqual(res, res2)
示例3: test_billing_and_shipping_selection_post
# 需要导入模块: from shop.views.checkout import CheckoutSelectionView [as 别名]
# 或者: from shop.views.checkout.CheckoutSelectionView import get_billing_and_shipping_selection_form [as 别名]
def test_billing_and_shipping_selection_post(self):
setattr(self.request, 'method', 'POST')
setattr(self.request, 'POST', {})
view = CheckoutSelectionView(request=self.request)
res = view.get_billing_and_shipping_selection_form()
self.assertNotEqual(res, None)