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

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

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_rest.py   ptahcms(Download)
 
        request = DummyRequest(params = {'title':''})
        info = rest.updateAction(content, request)
        self.assertEqual(info['errors']['title'], 'Required')
 
        request = DummyRequest(params = {'title':'New title'})
 
        info = rest.updateAction(content, request)