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

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

            def guarded_any(seq):
        return any(guarded_iter(seq))
        


src/a/c/AccessControl-3.0.8/src/AccessControl/tests/testZopeGuards.py   AccessControl(Download)
 
if sys.version_info >= (2, 5):
    from AccessControl.ZopeGuards import guarded_any, guarded_all
    MIN_MAX_TAKE_KEY = True
else:
        def test_any_succeeds(self):
            sm = SecurityManager() # accepts
            old = self.setSecurityManager(sm)
            self.assertEquals(guarded_any([True,True,False]), True)
            self.setSecurityManager(old)