| | |
| | | import unittest |
| | | from zope.interface import implementer |
| | | |
| | | from pyramid.compat import text_ |
| | | from pyramid.security import AuthenticationAPIMixin, AuthorizationAPIMixin |
| | |
| | | |
| | | def test_testing_add_subscriber_dottedname(self): |
| | | config = self._makeOne(autocommit=True) |
| | | L = config.testing_add_subscriber('tests.test_config.test_init.IDummy') |
| | | L = config.testing_add_subscriber('tests.test_config.IDummy') |
| | | event = DummyEvent() |
| | | config.registry.notify(event) |
| | | self.assertEqual(len(L), 1) |
| | |
| | | renderer.assert_(foo=1) |
| | | renderer.assert_(bar=2) |
| | | renderer.assert_(request=request) |
| | | |
| | | |
| | | from zope.interface import implementer |
| | | |
| | | |
| | | @implementer(IDummy) |