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/y/pyramid-views-1.0.3/tests/test_edit.py   pyramid-views(Download)
    def test_update_with_object_url(self):
        a = self.artist(name='Rene Magritte')
        view = views.ArtistUpdate.as_view()
        res = view(DummyRequest(
            method='POST',

src/p/y/pyramid-views-1.0.3/tests/test_list.py   pyramid-views(Download)
    def test_allow_empty_false(self):
        self.artist()
        view = views.ArtistList.as_view(allow_empty=False)
        res = view(DummyRequest())
        self.assertEqual(res.status_code, 200)