Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 18.217.138.109
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
setuptools /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
12.24
KB
-rw-r--r--
__init__.pyc
13.66
KB
-rw-r--r--
environment.py
4.55
KB
-rw-r--r--
environment.pyc
4.99
KB
-rw-r--r--
py26compat.py
267
B
-rw-r--r--
py26compat.pyc
795
B
-rw-r--r--
script-with-bom.py
46
B
-rw-r--r--
script-with-bom.pyc
183
B
-rw-r--r--
server.py
2.59
KB
-rw-r--r--
server.pyc
4.06
KB
-rw-r--r--
test_bdist_egg.py
1.92
KB
-rw-r--r--
test_bdist_egg.pyc
2.87
KB
-rw-r--r--
test_build_ext.py
650
B
-rw-r--r--
test_build_ext.pyc
1.06
KB
-rw-r--r--
test_develop.py
3.41
KB
-rw-r--r--
test_develop.pyc
3.82
KB
-rw-r--r--
test_dist_info.py
2.55
KB
-rw-r--r--
test_dist_info.pyc
3.39
KB
-rw-r--r--
test_easy_install.py
15.34
KB
-rw-r--r--
test_easy_install.pyc
17.09
KB
-rw-r--r--
test_egg_info.py
6.59
KB
-rw-r--r--
test_egg_info.pyc
7.35
KB
-rw-r--r--
test_find_packages.py
5.86
KB
-rw-r--r--
test_find_packages.pyc
8.52
KB
-rw-r--r--
test_integration.py
2.45
KB
-rw-r--r--
test_integration.pyc
3.14
KB
-rw-r--r--
test_markerlib.py
2.45
KB
-rw-r--r--
test_markerlib.pyc
2.78
KB
-rw-r--r--
test_packageindex.py
7.45
KB
-rw-r--r--
test_packageindex.pyc
9.69
KB
-rw-r--r--
test_resources.py
23.09
KB
-rwxr-xr-x
test_resources.pyc
26.69
KB
-rw-r--r--
test_sandbox.py
2.31
KB
-rw-r--r--
test_sandbox.pyc
3.92
KB
-rw-r--r--
test_sdist.py
17.56
KB
-rw-r--r--
test_sdist.pyc
16.29
KB
-rw-r--r--
test_svn.py
7.62
KB
-rw-r--r--
test_svn.pyc
11.39
KB
-rw-r--r--
test_test.py
3.61
KB
-rw-r--r--
test_test.pyc
3.88
KB
-rw-r--r--
test_upload_docs.py
2.09
KB
-rw-r--r--
test_upload_docs.pyc
2.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_egg_info.py
import os import sys import tempfile import shutil import unittest import pkg_resources import warnings from setuptools.command import egg_info from setuptools import svn_utils from setuptools.tests import environment, test_svn from setuptools.tests.py26compat import skipIf ENTRIES_V10 = pkg_resources.resource_string(__name__, 'entries-v10') "An entries file generated with svn 1.6.17 against the legacy Setuptools repo" class TestEggInfo(unittest.TestCase): def setUp(self): self.test_dir = tempfile.mkdtemp() os.mkdir(os.path.join(self.test_dir, '.svn')) self.old_cwd = os.getcwd() os.chdir(self.test_dir) def tearDown(self): os.chdir(self.old_cwd) shutil.rmtree(self.test_dir) def _write_entries(self, entries): fn = os.path.join(self.test_dir, '.svn', 'entries') entries_f = open(fn, 'wb') entries_f.write(entries) entries_f.close() @skipIf(not test_svn._svn_check, "No SVN to text, in the first place") def test_version_10_format(self): """ """ #keeping this set for 1.6 is a good check on the get_svn_revision #to ensure I return using svnversion what would had been returned version_str = svn_utils.SvnInfo.get_svn_version() version = [int(x) for x in version_str.split('.')[:2]] if version != [1, 6]: if hasattr(self, 'skipTest'): self.skipTest('') else: sys.stderr.write('\n Skipping due to SVN Version\n') return self._write_entries(ENTRIES_V10) rev = egg_info.egg_info.get_svn_revision() self.assertEqual(rev, '89000') def test_version_10_format_legacy_parser(self): """ """ path_variable = None for env in os.environ: if env.lower() == 'path': path_variable = env if path_variable: old_path = os.environ[path_variable] os.environ[path_variable] = '' #catch_warnings not available until py26 warning_filters = warnings.filters warnings.filters = warning_filters[:] try: warnings.simplefilter("ignore", DeprecationWarning) self._write_entries(ENTRIES_V10) rev = egg_info.egg_info.get_svn_revision() finally: #restore the warning filters warnings.filters = warning_filters #restore the os path if path_variable: os.environ[path_variable] = old_path self.assertEqual(rev, '89000') DUMMY_SOURCE_TXT = """CHANGES.txt CONTRIBUTORS.txt HISTORY.txt LICENSE MANIFEST.in README.txt setup.py dummy/__init__.py dummy/test.txt dummy.egg-info/PKG-INFO dummy.egg-info/SOURCES.txt dummy.egg-info/dependency_links.txt dummy.egg-info/top_level.txt""" class TestSvnDummy(environment.ZippedEnvironment): def setUp(self): version = svn_utils.SvnInfo.get_svn_version() if not version: # None or Empty return None self.base_version = tuple([int(x) for x in version.split('.')][:2]) if not self.base_version: raise ValueError('No SVN tools installed') elif self.base_version < (1, 3): raise ValueError('Insufficient SVN Version %s' % version) elif self.base_version >= (1, 9): #trying the latest version self.base_version = (1, 8) self.dataname = "dummy%i%i" % self.base_version self.datafile = os.path.join('setuptools', 'tests', 'svn_data', self.dataname + ".zip") super(TestSvnDummy, self).setUp() @skipIf(not test_svn._svn_check, "No SVN to text, in the first place") def test_sources(self): code, data = environment.run_setup_py(["sdist"], pypath=self.old_cwd, data_stream=1) if code: raise AssertionError(data) sources = os.path.join('dummy.egg-info', 'SOURCES.txt') infile = open(sources, 'r') try: read_contents = infile.read() finally: infile.close() del infile self.assertEqual(DUMMY_SOURCE_TXT, read_contents) return data @skipIf(not test_svn._svn_check, "No SVN to text, in the first place") def test_svn_tags(self): code, data = environment.run_setup_py(["egg_info", "--tag-svn-revision"], pypath=self.old_cwd, data_stream=1) if code: raise AssertionError(data) pkginfo = os.path.join('dummy.egg-info', 'PKG-INFO') infile = open(pkginfo, 'r') try: read_contents = infile.readlines() finally: infile.close() del infile self.assertTrue("Version: 0.1.1-r1\n" in read_contents) @skipIf(not test_svn._svn_check, "No SVN to text, in the first place") def test_no_tags(self): code, data = environment.run_setup_py(["egg_info"], pypath=self.old_cwd, data_stream=1) if code: raise AssertionError(data) pkginfo = os.path.join('dummy.egg-info', 'PKG-INFO') infile = open(pkginfo, 'r') try: read_contents = infile.readlines() finally: infile.close() del infile self.assertTrue("Version: 0.1.1\n" in read_contents) class TestSvnDummyLegacy(environment.ZippedEnvironment): def setUp(self): self.base_version = (1, 6) self.dataname = "dummy%i%i" % self.base_version self.datafile = os.path.join('setuptools', 'tests', 'svn_data', self.dataname + ".zip") super(TestSvnDummyLegacy, self).setUp() def test_sources(self): code, data = environment.run_setup_py(["sdist"], pypath=self.old_cwd, path="", data_stream=1) if code: raise AssertionError(data) sources = os.path.join('dummy.egg-info', 'SOURCES.txt') infile = open(sources, 'r') try: read_contents = infile.read() finally: infile.close() del infile self.assertEqual(DUMMY_SOURCE_TXT, read_contents) return data def test_suite(): return unittest.defaultTestLoader.loadTestsFromName(__name__)
Close