本文整理匯總了Python中exceptions.NotImplementedError方法的典型用法代碼示例。如果您正苦於以下問題:Python exceptions.NotImplementedError方法的具體用法?Python exceptions.NotImplementedError怎麽用?Python exceptions.NotImplementedError使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類exceptions
的用法示例。
在下文中一共展示了exceptions.NotImplementedError方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_delete_mgr_ok_multi
# 需要導入模塊: import exceptions [as 別名]
# 或者: from exceptions import NotImplementedError [as 別名]
def test_delete_mgr_ok_multi(self):
"""(RSE/PROTOCOLS): Delete multiple files from storage (Success)"""
status, details = mgr.delete(self.rse_settings, [{'name': '1_rse_remote_delete.raw', 'scope': 'user.%s' % self.user}, {'name': '2_rse_remote_delete.raw', 'scope': 'user.%s' % self.user}])
if not (status and details['user.%s:1_rse_remote_delete.raw' % self.user] and details['user.%s:2_rse_remote_delete.raw' % self.user]):
if isinstance(details['user.%s:1_rse_remote_delete.raw' % self.user], NotImplementedError) and isinstance(details['user.%s:2_rse_remote_delete.raw' % self.user], NotImplementedError):
pass
else:
raise Exception('Return not as expected: %s, %s' % (status, details))
示例2: get
# 需要導入模塊: import exceptions [as 別名]
# 或者: from exceptions import NotImplementedError [as 別名]
def get(self):
raise NotImplementedError()
示例3: sshGet
# 需要導入模塊: import exceptions [as 別名]
# 或者: from exceptions import NotImplementedError [as 別名]
def sshGet(self):
raise NotImplementedError("This source does not implement SSH remote checks")
示例4: fetch
# 需要導入模塊: import exceptions [as 別名]
# 或者: from exceptions import NotImplementedError [as 別名]
def fetch(cls, **kwargs):
raise NotImplementedError('fetch command implemented in subclasses only')