✘✘ 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/python33/lib64/python3.3/distutils/tests//test_config.py
"""Tests for distutils.pypirc.pypirc."""
import sys
import os
import unittest
import tempfile

from distutils.core import PyPIRCCommand
from distutils.core import Distribution
from distutils.log import set_threshold
from distutils.log import WARN

from distutils.tests import support
from test.support import run_unittest

PYPIRC = """\
[distutils]

index-servers =
    server1
    server2

[server1]
username:me
password:secret

[server2]
username:meagain
password: secret
realm:acme
repository:http://another.pypi/
"""

PYPIRC_OLD = """\
[server-login]
username:tarek
password:secret
"""

WANTED = """\
[distutils]
index-servers =
    pypi

[pypi]
username:tarek
password:xxx
"""


class PyPIRCCommandTestCase(support.TempdirManager,
                            support.LoggingSilencer,
                            support.EnvironGuard,
                            unittest.TestCase):

    def setUp(self):
        """Patches the environment."""
        super(PyPIRCCommandTestCase, self).setUp()
        self.tmp_dir = self.mkdtemp()
        os.environ['HOME'] = self.tmp_dir
        self.rc = os.path.join(self.tmp_dir, '.pypirc')
        self.dist = Distribution()

        class command(PyPIRCCommand):
            def __init__(self, dist):
                PyPIRCCommand.__init__(self, dist)
            def initialize_options(self):
                pass
            finalize_options = initialize_options

        self._cmd = command
        self.old_threshold = set_threshold(WARN)

    def tearDown(self):
        """Removes the patch."""
        set_threshold(self.old_threshold)
        super(PyPIRCCommandTestCase, self).tearDown()

    def test_server_registration(self):
        # This test makes sure PyPIRCCommand knows how to:
        # 1. handle several sections in .pypirc
        # 2. handle the old format

        # new format
        self.write_file(self.rc, PYPIRC)
        cmd = self._cmd(self.dist)
        config = cmd._read_pypirc()

        config = list(sorted(config.items()))
        waited = [('password', 'secret'), ('realm', 'pypi'),
                  ('repository', 'https://upload.pypi.org/legacy/'),
                  ('server', 'server1'), ('username', 'me')]
        self.assertEqual(config, waited)

        # old format
        self.write_file(self.rc, PYPIRC_OLD)
        config = cmd._read_pypirc()
        config = list(sorted(config.items()))
        waited = [('password', 'secret'), ('realm', 'pypi'),
                  ('repository', 'https://upload.pypi.org/legacy/'),
                  ('server', 'server-login'), ('username', 'tarek')]
        self.assertEqual(config, waited)

    def test_server_empty_registration(self):
        cmd = self._cmd(self.dist)
        rc = cmd._get_rc_file()
        self.assertFalse(os.path.exists(rc))
        cmd._store_pypirc('tarek', 'xxx')
        self.assertTrue(os.path.exists(rc))
        f = open(rc)
        try:
            content = f.read()
            self.assertEqual(content, WANTED)
        finally:
            f.close()

def test_suite():
    return unittest.makeSuite(PyPIRCCommandTestCase)

if __name__ == "__main__":
    run_unittest(test_suite())

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

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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.41 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.41 AM
root / linksafe
0755
Setup.sample
2.196 KB
19 Sep 2017 7.32 AM
root / linksafe
0644
__init__.py
1.035 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
support.py
6.38 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_archive_util.py
9.379 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_bdist.py
1.498 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_bdist_dumb.py
2.896 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_bdist_msi.py
0.711 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_bdist_rpm.py
4.838 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_bdist_wininst.py
1.016 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_build.py
1.874 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_build_clib.py
4.861 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_build_ext.py
17.393 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_build_py.py
6.029 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_build_scripts.py
3.509 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_check.py
3.907 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_clean.py
1.433 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_cmd.py
3.745 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_config.py
3.08 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_config_cmd.py
2.541 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_core.py
2.956 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_cygwinccompiler.py
5.538 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_dep_util.py
2.766 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_dir_util.py
4.173 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_dist.py
14.605 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_extension.py
2.703 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_file_util.py
1.863 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_filelist.py
9.837 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_install.py
8.291 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_install_data.py
2.542 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_install_headers.py
1.234 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_install_lib.py
3.756 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_install_scripts.py
2.563 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_log.py
1.203 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_msvc9compiler.py
5.899 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_register.py
9.074 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_sdist.py
14.322 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_spawn.py
1.813 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_sysconfig.py
6.319 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_text_file.py
3.355 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_unixccompiler.py
4.757 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_upload.py
3.698 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_util.py
10.991 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_version.py
2.553 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
test_versionpredicate.py
0.273 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
xxmodule.c
12.06 KB
19 Sep 2017 7.32 AM
root / linksafe
0644

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