def test_includeme(self): from pyramid_mailer.interfaces import IMailer from pyramid_mailer.mailer import DummyMailer from pyramid_mailer.testing import includeme registry = DummyRegistry() config = DummyConfig(registry, {}) includeme(config) self.assertEqual(registry.registered[IMailer].__class__, DummyMailer)
def _do_includeme(self, config): from pyramid_mailer import includeme includeme(config)