本文整理汇总了Python中restclients.nws.NWS.delete_subscription方法的典型用法代码示例。如果您正苦于以下问题:Python NWS.delete_subscription方法的具体用法?Python NWS.delete_subscription怎么用?Python NWS.delete_subscription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类restclients.nws.NWS
的用法示例。
在下文中一共展示了NWS.delete_subscription方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _delete_subscription_live
# 需要导入模块: from restclients.nws import NWS [as 别名]
# 或者: from restclients.nws.NWS import delete_subscription [as 别名]
def _delete_subscription_live(self):
with self.settings(
RESTCLIENTS_NWS_DAO_CLASS='restclients.dao_implementation.nws.Live'):
nws = NWS()
response_status = nws.delete_subscription("6445864b-6d1c-47b7-a409-279ba4a4ccf4")
self.assertEquals(response_status, 204)
示例2: test_delete_subscription
# 需要导入模块: from restclients.nws import NWS [as 别名]
# 或者: from restclients.nws.NWS import delete_subscription [as 别名]
def test_delete_subscription(self):
with self.settings(
RESTCLIENTS_NWS_DAO_CLASS='restclients.dao_implementation.nws.File'):
nws = NWS()
response_status = nws.delete_subscription("652236c6-a85a-4845-8dc5-3e518bec044c")
self.assertEquals(response_status, 204)