Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/test/__pycache__/test_webbrowser.cpython-33.pyc

�
��f�c@s]ddlZddlZddlZddlmZddlmZdZdZGdd�dej�Z	Gdd	�d	�Z
Gd
d�de
ej�ZGdd
�d
e
ej�Z
Gdd�de
ej�ZGdd�de
ej�ZGdd�de
ej�ZGdd�de
ej�ZGdd�de
ej�ZedkrYej�ndS(iN(umock(usupportuhttp://www.example.comutestcBs/|EeZdZdd�Zddd�ZdS(u	PopenMockcCsdS(Ni((uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyupollsuPopenMock.pollcCsdS(Ni((uselfuseconds((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuwaitsuPopenMock.waitN(u__name__u
__module__u__qualname__upolluNoneuwait(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	PopenMocksu	PopenMockcBs/|EeZdZdegdidd�ZdS(uCommandTestMixinuargsukwc
Cs�t�}tj|td|�|jdt�}t||�||�tjjdd}|j	|dt�|j
d�x4|D],}	|j|	|�|j
|j|	��q�W|j	||�dS(ujGiven a web browser instance method name along with arguments and
        keywords for same (which defaults to the single argument URL), creates
        a browser instance from the class pointed to by self.browser, calls the
        indicated instance method with the indicated arguments, and compares
        the resulting options and arguments passed to Popen by the browser
        instance against the 'options' and 'args' lists.  Options are compared
        in a position independent fashion, and the arguments are compared in
        sequence order to whatever is left over after removing the options.

        uPopenunameiN(
u	PopenMockusupportupatchu
subprocessu
browser_classuCMD_NAMEugetattruPopenu	call_argsuassertEqualupopuassertInuindex(
uselfumethuargsukwuoptionsu	argumentsupopenubrowseru
popen_argsuoption((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu_tests	

uCommandTestMixin._testN(u__name__u
__module__u__qualname__uURLu_test(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuCommandTestMixinsuCommandTestMixincBs)|EeZdZejZdd�ZdS(uGenericBrowserCommandTestcCs |jddgdtg�dS(Nuopenuoptionsu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_open3su#GenericBrowserCommandTest.test_openN(u__name__u
__module__u__qualname__u
webbrowseruGenericBrowseru
browser_classu	test_open(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuGenericBrowserCommandTest/s	uGenericBrowserCommandTestcBs)|EeZdZejZdd�ZdS(uBackgroundBrowserCommandTestcCs |jddgdtg�dS(Nuopenuoptionsu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_open=su&BackgroundBrowserCommandTest.test_openN(u__name__u
__module__u__qualname__u
webbrowseruBackgroundBrowseru
browser_classu	test_open(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuBackgroundBrowserCommandTest9s	uBackgroundBrowserCommandTestcBsM|EeZdZejZdd�Zdd�Zdd�Zdd�Z	d	S(
uChromeCommandTestcCs |jddgdtg�dS(Nuopenuoptionsu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_openGsuChromeCommandTest.test_opencCs/|jddtdd�dgdtg�dS(Nuopenukwu	autoraiseuoptionsu	argumentsF(u_testudictuFalseuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_with_autoraise_falseLsu0ChromeCommandTest.test_open_with_autoraise_falsecCs#|jdddgdtg�dS(Nuopen_newuoptionsu--new-windowu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu
test_open_newQs	uChromeCommandTest.test_open_newcCs |jddgdtg�dS(Nuopen_new_tabuoptionsu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_new_tabVsu#ChromeCommandTest.test_open_new_tabN(
u__name__u
__module__u__qualname__u
webbrowseruChromeu
browser_classu	test_openutest_open_with_autoraise_falseu
test_open_newutest_open_new_tab(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuChromeCommandTestCs
	uChromeCommandTestcBsM|EeZdZejZdd�Zdd�Zdd�Zdd�Z	d	S(
uMozillaCommandTestcCs/|jddddgddjt�g�dS(Nuopenuoptionsu-raiseu-remoteu	argumentsuopenURL({})(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_open`suMozillaCommandTest.test_openc	Cs>|jddtdd	�dddgddjt�g�dS(
Nuopenukwu	autoraiseuoptionsu-noraiseu-remoteu	argumentsuopenURL({})F(u_testudictuFalseuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_with_autoraise_falseesu1MozillaCommandTest.test_open_with_autoraise_falsecCs/|jddddgddjt�g�dS(Nuopen_newuoptionsu-raiseu-remoteu	argumentsuopenURL({},new-window)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu
test_open_newjsu MozillaCommandTest.test_open_newcCs/|jddddgddjt�g�dS(Nuopen_new_tabuoptionsu-raiseu-remoteu	argumentsuopenURL({},new-tab)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_new_tabosu$MozillaCommandTest.test_open_new_tabN(
u__name__u
__module__u__qualname__u
webbrowseruMozillau
browser_classu	test_openutest_open_with_autoraise_falseu
test_open_newutest_open_new_tab(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuMozillaCommandTest\s
	uMozillaCommandTestcBsM|EeZdZejZdd�Zdd�Zdd�Zdd�Z	d	S(
uGaleonCommandTestcCs#|jdddgdtg�dS(Nuopenuoptionsu-nu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_openys	uGaleonCommandTest.test_opencCs5|jddtdd�dddgdtg�dS(	Nuopenukwu	autoraiseuoptionsu-noraiseu-nu	argumentsF(u_testudictuFalseuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_with_autoraise_false~su0GaleonCommandTest.test_open_with_autoraise_falsecCs#|jdddgdtg�dS(Nuopen_newuoptionsu-wu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu
test_open_new�s	uGaleonCommandTest.test_open_newcCs#|jdddgdtg�dS(Nuopen_new_tabuoptionsu-wu	arguments(u_testuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_new_tab�s	u#GaleonCommandTest.test_open_new_tabN(
u__name__u
__module__u__qualname__u
webbrowseruGaleonu
browser_classu	test_openutest_open_with_autoraise_falseu
test_open_newutest_open_new_tab(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuGaleonCommandTestus
	uGaleonCommandTestcBsM|EeZdZejZdd�Zdd�Zdd�Zdd�Z	d	S(
uOperaCommandTestcCs,|jdddgddjt�g�dS(Nuopenuoptionsu-remoteu	argumentsuopenURL({})(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_open�s	uOperaCommandTest.test_openc	Cs>|jddtdd	�dddgddjt�g�dS(
Nuopenukwu	autoraiseuoptionsu-remoteu-noraiseu	argumentsuopenURL({})F(u_testudictuFalseuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_with_autoraise_false�su/OperaCommandTest.test_open_with_autoraise_falsecCs,|jdddgddjt�g�dS(Nuopen_newuoptionsu-remoteu	argumentsuopenURL({},new-window)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu
test_open_new�s	uOperaCommandTest.test_open_newcCs,|jdddgddjt�g�dS(Nuopen_new_tabuoptionsu-remoteu	argumentsuopenURL({},new-page)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_new_tab�s	u"OperaCommandTest.test_open_new_tabN(
u__name__u
__module__u__qualname__u
webbrowseruOperau
browser_classu	test_openutest_open_with_autoraise_falseu
test_open_newutest_open_new_tab(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuOperaCommandTest�s
	uOperaCommandTestcBsM|EeZdZejZdd�Zdd�Zdd�Zdd�Z	d	S(
uELinksCommandTestcCs,|jdddgddjt�g�dS(Nuopenuoptionsu-remoteu	argumentsuopenURL({})(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu	test_open�suELinksCommandTest.test_opencCs,|jdddgddjt�g�dS(Nuopenuoptionsu-remoteu	argumentsuopenURL({})(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_with_autoraise_false�s	u0ELinksCommandTest.test_open_with_autoraise_falsecCs,|jdddgddjt�g�dS(Nuopen_newuoptionsu-remoteu	argumentsuopenURL({},new-window)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu
test_open_new�s	uELinksCommandTest.test_open_newcCs,|jdddgddjt�g�dS(Nuopen_new_tabuoptionsu-remoteu	argumentsuopenURL({},new-tab)(u_testuformatuURL(uself((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyutest_open_new_tab�s	u#ELinksCommandTest.test_open_new_tabN(
u__name__u
__module__u__qualname__u
webbrowseruElinksu
browser_classu	test_openutest_open_with_autoraise_falseu
test_open_newutest_open_new_tab(u
__locals__((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyuELinksCommandTest�s
	uELinksCommandTestu__main__(u
webbrowseruunittestu
subprocessumockutestusupportuURLuCMD_NAMEu	MagicMocku	PopenMockuCommandTestMixinuTestCaseuGenericBrowserCommandTestuBackgroundBrowserCommandTestuChromeCommandTestuMozillaCommandTestuGaleonCommandTestuOperaCommandTestuELinksCommandTestu__name__umain(((u9/opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu<module>s"