本文整理汇总了Python中mkt.api.tests.test_oauth.RestOAuth.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python RestOAuth.setUp方法的具体用法?Python RestOAuth.setUp怎么用?Python RestOAuth.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mkt.api.tests.test_oauth.RestOAuth
的用法示例。
在下文中一共展示了RestOAuth.setUp方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from mkt.api.tests.test_oauth import RestOAuth [as 别名]
# 或者: from mkt.api.tests.test_oauth.RestOAuth import setUp [as 别名]
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
# 需要导入模块: from mkt.api.tests.test_oauth import RestOAuth [as 别名]
# 或者: from mkt.api.tests.test_oauth.RestOAuth import setUp [as 别名]
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
# 需要导入模块: from mkt.api.tests.test_oauth import RestOAuth [as 别名]
# 或者: from mkt.api.tests.test_oauth.RestOAuth import setUp [as 别名]
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
# 需要导入模块: from mkt.api.tests.test_oauth import RestOAuth [as 别名]
# 或者: from mkt.api.tests.test_oauth.RestOAuth import setUp [as 别名]
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
# 需要导入模块: from mkt.api.tests.test_oauth import RestOAuth [as 别名]
# 或者: from mkt.api.tests.test_oauth.RestOAuth import setUp [as 别名]
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})