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

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

src/p/y/pyramid-views-1.0.3/tests/test_list.py   pyramid-views(Download)
        self.assertEqual(res.status_code, 200)
        self.assertEqual(list(res.context['object_list']), list(Session.query(Author).all()))
        self.assertNotIn('authors', res.context)
        self.assertIs(res.context['author_list'], res.context['object_list'])
        self.assertTemplateUsed(res, 'tests:templates/author_list.html')
        self.assertEqual(res.status_code, 200)
        self.assertEqual(list(res.context['object_list']), list(Session.query(Author).all()))
        self.assertNotIn('authors', res.context)
        self.assertNotIn('author_list', res.context)
        self.assertTemplateUsed(res, 'tests:templates/author_list.html')

src/p/y/pyramid-views-1.0.3/tests/test_base.py   pyramid-views(Download)
        )
        for attribute in ('args', 'kwargs', 'request'):
            self.assertNotIn(attribute, dir(bare_view))
            self.assertIn(attribute, dir(view))