本文整理汇总了Python中mkt.api.tests.test_oauth.RestOAuth类的典型用法代码示例。如果您正苦于以下问题:Python RestOAuth类的具体用法?Python RestOAuth怎么用?Python RestOAuth使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RestOAuth类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
RestOAuth.setUp(self) # Avoid calling PurchaseTest.setUp().
self.user = UserProfile.objects.get(pk=2519)
self.list_url = reverse('webpay-prepare')
self.setup_base()
self.setup_package()
self.setup_mock_generic_product()
示例2: setUp
def setUp(self):
RestOAuth.setUp(self) # Avoid calling PurchaseTest.setUp().
self.user = UserProfile.objects.get(pk=2519)
self.setup_base()
self.setup_package()
self.setup_public_id()
self.list_url = reverse('webpay-prepare-inapp')
示例3: setUp
def setUp(self):
RestOAuth.setUp(self) # Avoid calling PurchaseTest.setUp().
self.user = UserProfile.objects.get(pk=2519)
self.create_switch('marketplace')
self.list_url = reverse('webpay-prepare')
self.setup_base()
self.setup_package()
示例4: setUp
def setUp(self):
self.permission = 'Prices:Edit'
RestOAuth.setUp(self)
self.list_url = reverse('price-currency-list')
self.detail_url = reverse('price-currency-detail', kwargs={'pk': 1})
self.tier_url = reverse('price-tier-detail', kwargs={'pk': 1})
示例5: setUp
def setUp(self):
RestOAuth.setUp(self)
self.list_url = reverse('price-currency-list')
self.detail_url = reverse('price-currency-detail', kwargs={'pk': 1})
self.tier_url = reverse('price-tier-detail', kwargs={'pk': 1})