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/launchpadlib/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyc
ó
ªÝNc@s»dZddlZddlZddlZddlmZddlmZmZddl	m
Z
mZmZm
Z
dejfd„ƒYZdefd	„ƒYZd
efd„ƒYZdS(s'Tests for the credential store classes.iÿÿÿÿN(t	b64decode(tfake_keyringtInMemoryKeyring(tAccessTokentCredentialstKeyringCredentialStoretUnencryptedFileCredentialStoretCredentialStoreTestCasecBseZd„ZRS(cCstddddt|dƒƒS(s(Helper method to make a fake credential.sapp nametconsumer_secretsconsumer_secret:42taccess_tokensaccess_secret:168(RR(tselftconsumer_key((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pytmake_credential(s(t__name__t
__module__R(((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR&st"TestUnencryptedFileCredentialStorecBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s3Tests for the UnencryptedFileCredentialStore class.cCs+tjƒ\}|_t|jƒ|_dS(N(ttempfiletmkstemptfilenameRtstore(R
tignore((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pytsetUp2scCs,tjj|jƒr(tj|jƒndS(N(tostpathtexistsRtremove(R
((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttearDown6scCsT|jdƒ}|jj|dƒ|jjdƒ}|j|jj|jjƒdS(Nsconsumer keys
unique key(RRtsavetloadtassertEqualstconsumertkey(R
t
credentialtcredential2((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_save_and_load:scCsT|jdƒ}|jj|dƒ|jjdƒ}|j|jj|jjƒdS(Nsconsumer keyssome keyssome other key(RRRRRRR(R
R R!((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_unique_id_doesnt_matterAscCsv|jdƒ}|jdƒ}|jj|dƒ|jj|dƒ|jjdƒ}|j|jj|jjƒdS(Nsconsumer keys
consumer key2sunique key 1sunique key 2(RRRRRRR(R
tcredential1R!tloaded((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyt&test_file_only_contains_one_credentialIs(R
Rt__doc__RRR"R#R&(((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR/s				tTestKeyringCredentialStorecBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s+Tests for the KeyringCredentialStore class.cCstƒ|_tƒ|_dS(N(RtkeyringRR(R
((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyRYscCsjt|jƒU|jdƒ}|jj|dƒ|jjdƒ}|j|jj|jjƒWdQXdS(Nsconsumer keys
unique key(	RR)RRRRRRR(R
R R!((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR"]scCsºt|jƒ¥|jdƒ}|jj|dƒ|jdƒ}|jj|dƒ|jjdƒ}|j|jj|jjƒ|jjdƒ}|j|jj|jjƒWdQXdS(Ns
consumer key1skey 1s
consumer key2skey 2(	RR)RRRRRRR(R
R$R!tloaded1tloaded2((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_lookup_by_unique_keyfscCsŒt|jƒw|jdƒ}|jj|dƒ|jdƒ}|jj|dƒ|jjdƒ}|j|jj|jjƒWdQXdS(Ns
consumer key1sthe only keys
consumer key2(	RR)RRRRRRR(R
R$R!R%((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyt/test_reused_unique_id_overwrites_old_credentialxscCs6t|jƒ!|jd|jjdƒƒWdQXdS(Nsno such key(RR)RtNoneRR(R
((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_bad_unique_id_returns_none‡scs®dtf‡fd†ƒY‰ˆƒ|_t|jƒq|jdƒ}|jj|dƒ|jjdƒ}|j|jj	|jj	ƒ|j|jj
|jj
ƒWdQXdS(NtUnicodeInMemoryKeyringcseZ‡fd†ZRS(csttˆ|ƒj||ƒƒS(N(tunicodetsupertget_password(R
tservicetusername(R0(sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR3’s(R
RR3((R0(sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR0‘ssconsumer keys
unique key(RR)RRRRRRRRtsecret(R
R R!((R0sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_keyring_returns_unicodescs®dtf‡fd†ƒY‰ˆƒ|_t|jƒq|jdƒ}|jj|dƒ|jjdƒ}|j|jj	|jj	ƒ|j|jj
|jj
ƒWdQXdS(NtUnencodedInMemoryKeyringcseZ‡fd†ZRS(cs)tˆ|ƒj||ƒ}t|dƒS(Ni(R2R3R(R
R4R5tpw(R8(sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR3¥s(R
RR3((R8(sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR8¤ssconsumer keys
unique key(RR)RRRRRRRRR6(R
R R!((R8sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_nonencoded_key_handled¡scCs}dtfd„ƒY}|ƒ|_t|jƒF|jdƒ}|jj|dƒ|jjdƒ}|j|ƒWdQXdS(NtCorruptedInMemoryKeyringcBseZd„ZRS(cSsdS(Ntbad((R
R4R5((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR3¸s(R
RR3(((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR;·ssconsumer keys
unique key(RR)RRRRRtassertIsNone(R
R;R R!((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyttest_corrupted_key_handled´s(R
RR'RR"R,R-R/R7R:R>(((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyR(Vs								(R'RRtunittesttbase64Rtlaunchpadlib.testing.helpersRRtlaunchpadlib.credentialsRRRRtTestCaseRRR((((sL/usr/lib/python2.7/dist-packages/launchpadlib/tests/test_credential_store.pyt<module>s"	'

Youez - 2016 - github.com/yon3zu
LinuXploit