• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python tasks.region_email函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mkt.developers.tasks.region_email函数的典型用法代码示例。如果您正苦于以下问题:Python region_email函数的具体用法?Python region_email怎么用?Python region_email使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了region_email函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_email_for_several_new_regions

 def test_email_for_several_new_regions(self):
     tasks.region_email([self.app.id],
                        [mkt.regions.CA, mkt.regions.UK, mkt.regions.BR])
     msg = mail.outbox[0]
     eq_(msg.subject, '%s: New regions added to the Firefox Marketplace'
                       % self.app.name)
     assert ' added a few new ' in msg.body
     assert ': Brazil, Canada, and United Kingdom.' in msg.body
开发者ID:rtnpro,项目名称:zamboni,代码行数:8,代码来源:test_tasks.py


示例2: test_email_for_two_new_regions

 def test_email_for_two_new_regions(self):
     tasks.region_email([self.app.id], [mkt.regions.UK, mkt.regions.BR])
     msg = mail.outbox[0]
     eq_(msg.subject, "%s: New regions added to the Firefox Marketplace" % self.app.name)
     eq_(msg.to, ["[email protected]"])
     dev_url = "http://omg.org/developers/app/something-something/" "edit#details"
     assert unicode(self.app.name) in msg.body
     assert dev_url in msg.body
     assert " added two new " in msg.body
     assert ": Brazil and United Kingdom." in msg.body
开发者ID:nearlyfreeapps,项目名称:zamboni,代码行数:10,代码来源:test_tasks.py


示例3: test_email_for_one_new_region

 def test_email_for_one_new_region(self):
     tasks.region_email([self.app.id], [mkt.regions.BR])
     msg = mail.outbox[0]
     eq_(msg.subject, '%s: Brazil region added to the Firefox Marketplace'
                       % self.app.name)
     eq_(msg.to, ['[email protected]'])
     dev_url = ('http://omg.org/developers/app/something-something/'
                'edit#details')
     assert unicode(self.app.name) in msg.body
     assert dev_url in msg.body
     assert ' added a new ' in msg.body
     assert ' for Brazil.' in msg.body
开发者ID:j-barron,项目名称:zamboni,代码行数:12,代码来源:test_tasks.py


示例4: test_email_for_two_new_regions

 def test_email_for_two_new_regions(self):
     tasks.region_email([self.app.id],
                        [mkt.regions.GBR.id, mkt.regions.BRA.id])
     msg = mail.outbox[0]
     eq_(msg.subject, '%s: New regions added to the Firefox Marketplace'
                      % self.app.name)
     eq_(msg.to, ['[email protected]'])
     dev_url = ('http://omg.org/developers/app/something-something/'
                'edit#details')
     assert unicode(self.app.name) in msg.body
     assert dev_url in msg.body
     assert ' added two new ' in msg.body
     assert ': Brazil and United Kingdom.' in msg.body
开发者ID:Jobava,项目名称:zamboni,代码行数:13,代码来源:test_tasks.py


示例5: test_email_for_several_new_regions

 def test_email_for_several_new_regions(self):
     tasks.region_email([self.app.id], [mkt.regions.UK, mkt.regions.US, mkt.regions.BR])
     msg = mail.outbox[0]
     eq_(msg.subject, "%s: New regions added to the Firefox Marketplace" % self.app.name)
     assert " added a few new " in msg.body
     assert ": Brazil, United Kingdom, and United States." in msg.body
开发者ID:nearlyfreeapps,项目名称:zamboni,代码行数:6,代码来源:test_tasks.py



注:本文中的mkt.developers.tasks.region_email函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python tasks.region_exclude函数代码示例发布时间:2022-05-27
下一篇:
Python tasks.fetch_manifest函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap