def test_init_sockjs_directive(self): self.assertFalse(hasattr(self.config, 'ptah_init_sockjs')) self.config.include('ptah') self.config.include('pyramid_sockjs') self.assertTrue(hasattr(self.config, 'ptah_init_sockjs')) self.config.ptah_init_sockjs() self.assertIsNotNone( pyramid_sockjs.get_session_manager('ptah', self.registry))
def get_session_manager(registry): return pyramid_sockjs.get_session_manager('ptah', registry)