✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python/test//_deprecatetests.py.3only
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

import inspect

from twisted.python.deprecate import _passedSignature
from twisted.trial.unittest import SynchronousTestCase


class KeywordOnlyTests(SynchronousTestCase):
    """
    Keyword only arguments (PEP 3102).
    """
    def checkPassed(self, func, *args, **kw):
        """
        Test an invocation of L{passed} with the given function, arguments, and
        keyword arguments.

        @param func: A function whose argspec to pass to L{_passed}.
        @type func: A callable.

        @param args: The arguments which could be passed to L{func}.

        @param kw: The keyword arguments which could be passed to L{func}.

        @return: L{_passed}'s return value
        @rtype: L{dict}
        """
        return _passedSignature(inspect.signature(func), args, kw)


    def test_passedKeywordOnly(self):
        """
        Keyword only arguments follow varargs.
        They are specified in PEP 3102.
        """
        def func1(*a, b=True):
            """
            b is a keyword-only argument, with a default value.
            """

        def func2(*a, b=True, c, d, e):
            """
            b, c, d, e  are keyword-only arguments.
            b has a default value.
            """

        self.assertEqual(self.checkPassed(func1, 1, 2, 3),
                         dict(a=(1, 2, 3), b=True))
        self.assertEqual(self.checkPassed(func1, 1, 2, 3, b=False),
                         dict(a=(1, 2, 3), b=False))
        self.assertEqual(self.checkPassed(func2,
                         1, 2, b=False, c=1, d=2, e=3),
                         dict(a=(1, 2), b=False, c=1, d=2, e=3))
        self.assertRaises(TypeError, self.checkPassed,
                          func2, 1, 2, b=False, c=1, d=2)


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
0.041 KB
26 May 2019 5.43 AM
root / linksafe
0644
_deprecatetests.py.3only
1.771 KB
26 May 2019 5.43 AM
root / linksafe
0644
deprecatedattributes.py
0.558 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
modules_helpers.py
1.567 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
pullpipe.py
1.191 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_appdirs.py
1.056 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_components.py
25.365 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_constants.py
37.224 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_deprecate.py
38.018 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_dist3.py
1.814 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_fakepwd.py
13.776 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_htmlizer.py
1.236 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_inotify.py
3.554 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_release.py
40.084 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_runtime.py
7.74 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_sendmsg.py
24.642 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_setup.py
13.385 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
test_shellcomp.py
21.298 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_syslog.py
4.832 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_systemd.py
6.251 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_textattributes.py
0.695 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_tzhelper.py
3.891 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_url.py
28.626 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_urlpath.py
10.086 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_util.py
35.605 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_versions.py
5.273 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_zippath.py
3.393 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
test_zipstream.py
12.02 KB
18 Dec 2019 3.08 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF