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

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

src/c/o/collective.gallery-HEAD/collective/gallery/tests/test_setup.py   collective.gallery(Download)
    def testRegistry(self):
        from collective.gallery.interfaces import IGallerySettings
        pp = self.portal.portal_registry.forInterface(IGallerySettings)
        self.assertTrue(hasattr(pp, 'photo_max_size'))
        self.assertEqual(pp.photo_max_size, 400)

src/c/o/collective.gallery-2.0.1/collective/gallery/tests/test_setup.py   collective.gallery(Download)
    def testRegistry(self):
        from collective.gallery.interfaces import IGallerySettings
        pp = self.portal.portal_registry.forInterface(IGallerySettings)
        self.assertTrue(hasattr(pp, 'photo_max_size'))
        self.assertEqual(pp.photo_max_size, 400)