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_base.py   pyramid-views(Download)
        for attribute in ('args', 'kwargs', 'request'):
            self.assertNotIn(attribute, dir(bare_view))
            self.assertIn(attribute, dir(view))
 
    def test_direct_instantiation(self):
    def _assert_about(self, response):
        self.assertEqual(response.status_code, 200)
        self.assertIn('<h1>About</h1>', response.body)
 
    def test_get(self):
            }
        macros = MyMacroMixin().get_macros()
        self.assertIn('forms', macros)
        self.assertIn('form', macros['forms'].names)
        self.assertIsInstance(macros['forms']['form'], Macro)