403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/keyring/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyc
ó
F+ÞOc@s·dZddlZddlZddlmZddlZdejjfd„ƒYZ	dejjfd„ƒYZ
dejfd	„ƒYZd
„Z
edkr³ejdd
ƒndS(s7
Test case to access the keyring from the command line
iÿÿÿÿN(tclitFakeKeyringcBs)eZdZd„Zd„Zd„ZRS(t
GABUZOMEUHcCsdS(Ni((tself((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt	supportedscCsdS(N((Rtservicetusernametpassword((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pytset_passwordscCs|jS(N(tPASSWORD(RRR((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pytget_passwords(t__name__t
__module__R	RRR
(((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyRs		t
SimpleKeyringcBs2eZdZd„Zd„Zd„Zd„ZRS(sA very simple keyringcCs
i|_dS(N(tpwd(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt__init__scCsdS(Ni((R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyRscCs||j||f<dS(N(R(RRRR((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyR!scCs.y|j||fSWntk
r)dSXdS(N(RtKeyErrortNone(RRR((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyR
$s
(RRt__doc__RRRR
(((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyR
s
			tCommandLineTestCasecBskeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(cCstjƒ|_tjƒ|_|j|j_|j|j_|j	|jj
_d„|jj
_tj
tƒƒd|_d|_d|_dS(NcSsdS(N(R(((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt<lambda>3st(tkeyringtget_keyringtold_keyringRtCommandLineTooltreturn_passwordtinput_passwordt
save_passwordtoutput_passwordt
mock_errortparserterrort
print_helptset_keyringR
RRtpassword_returnedt
last_error(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pytsetUp,s		cCstj|jƒdS(N(RR"R(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttearDown;scOs|jS(N(R(Rtargstkwargs((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyR>scCs
||_dS(N(R#(RR((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyRAscCs||_tƒ‚dS(N(R$t
SystemExit(RR ((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyRDs	cCs|jd|jjgƒƒ|jt|jjdgƒ|jt|jjddgƒ|jt|jjddddgƒ|jt|jjdgƒ|jt|jjddgƒ|jt|jjddddgƒ|jt|jjdddgƒdS(Nitgettfootbartbaztset(tassertEqualRtruntassertRaisesR)(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttest_wrong_argumentsHscCs<|jd|jjdddgƒƒ|jd|jƒdS(NiR*R+R,(R/RR0RR#(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttest_get_unexistent_passwordWs%cCsjd|_|jd|jjdddgƒƒ|jd|jjdddgƒƒ|jd|jƒdS(NtplopiR.R+R,R*(RR/RR0R#(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttest_set_and_get_password[s	%%cCsW|jd|jjdddddgƒƒtjƒ}|jt|tjjƒƒdS(NiR*s-bs$keyring.backend.UncryptedFileKeyringR+R,(	R/RR0RRt
assertTruet
isinstancetbackendtUncryptedFileKeyring(RR8((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttest_load_builtin_backendasc
Cs{tjjtjjtjƒdƒ}|jd|jjdddd|ddgƒƒtj	ƒ}|jt
j|jƒdS(	NttestsiR*s-bstest_cli.FakeKeyrings-pR+R,(
tostpathtjointdirnameRt__file__R/RR0RRR	R#(Rtkeyring_pathR8((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt$test_load_specific_backend_with_pathjs$cCs||jt|jjdddddgƒ|jt|jjdddddgƒ|jt|jjdddddgƒdS(NR*R+R,s-bt	blablablasos.path.blablas__builtin__.str(R1R)RR0(R((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyttest_load_wrong_keyringsws	
	
	(
RRR%R&RRRR2R3R5R:RBRD(((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyR+s											
cCs&tjƒ}|jtjtƒƒ|S(N(tunittestt	TestSuitetaddTestt	makeSuiteR(tsuite((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt
test_suite‡st__main__tdefaultTestRJ(Rtos.pathR<RERRtkeyring.backendR8tKeyringBackendRR
tTestCaseRRJRtmain(((s:/usr/lib/python2.7/dist-packages/keyring/tests/test_cli.pyt<module>s\	

Youez - 2016 - github.com/yon3zu
LinuXploit