Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(33)  |  Call(16)  |  Derive(0)  |  Import(17)

src/p/t/ptahcms-0.5.1/ptahcms/manage/tests/test_model.py   ptahcms(Download)
    def test_model_module(self):
        from ptahcms.manage.model import ModelModule
        from ptah.manage.manage import PtahManageRoute
 
        request = DummyRequest()
    def test_model_view(self):
        from ptahcms.manage.model import ModelModule, ModelModuleView
 
        request = DummyRequest()
 
        mod = ModelModule(None, request)
    def test_model_view_disabled(self):
        from ptahcms.manage.model import ModelModule, ModelModuleView
 
        cfg = ptah.get_settings(ptah.CFG_ID_PTAH, self.registry)
        cfg['disable_models'] = ['type:content2']
 
        request = DummyRequest()
 
        mod = ModelModule(None, request)