本文整理匯總了Python中marrow.mailer.Mailer._load方法的典型用法代碼示例。如果您正苦於以下問題:Python Mailer._load方法的具體用法?Python Mailer._load怎麽用?Python Mailer._load使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類marrow.mailer.Mailer
的用法示例。
在下文中一共展示了Mailer._load方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_load_entrypoint
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_entrypoint(self):
assert Mailer._load("immediate", "marrow.mailer.manager") == ImmediateManager
示例2: test_load_dotcolon
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_dotcolon(self):
assert Mailer._load("marrow.mailer.manager.immediate:ImmediateManager", None) == ImmediateManager
示例3: test_load_literal
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_literal(self):
assert Mailer._load(ImmediateManager, None) == ImmediateManager
示例4: test_load_entrypoint
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_entrypoint(self):
self.assertEqual(Mailer._load('immediate', 'marrow.mailer.manager'), ImmediateManager)
示例5: test_load_dotcolon
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_dotcolon(self):
self.assertEqual(Mailer._load('marrow.mailer.manager.immediate:ImmediateManager', None), ImmediateManager)
示例6: test_load_literal
# 需要導入模塊: from marrow.mailer import Mailer [as 別名]
# 或者: from marrow.mailer.Mailer import _load [as 別名]
def test_load_literal(self):
self.assertEqual(Mailer._load(ImmediateManager, None), ImmediateManager)