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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/p/t/ptahcms-0.5.1/ptahcms/manage/tests/test_apps.py   ptahcms(Download)
                      'term': 'search term'}))
        form.csrf = False
        res = form.update()
 
        self.assertIsInstance(res, HTTPFound)
                POST={'form.buttons.search': 'Search'}))
        form.csrf = False
        form.update()
 
        self.assertIn('Please specify search term',
                session={'apps-sharing-term': 'email'}))
        form.csrf = False
        form.update()
 
        self.assertEqual(len(form.users), 1)
                      'user-test:user-role:test': 'on'}))
        form.csrf = False
        form.update()
 
        self.assertIn('test:user', app.__local_roles__)
                      'userid-test:user': 'on'}))
        form.csrf = False
        form.update()
 
        self.assertNotIn('test:user', app.__local_roles__)