Your IP : 216.73.216.213
�
��f� c @ s] d d l Z d d l Z d d l Z d d l m Z d d l m Z d Z d Z Gd d � d e j � Z Gd d � d � Z
Gd
d � d e
e j � Z Gd d
� d
e
e j � Z
Gd d � d e
e j � Z Gd d � d e
e j � Z Gd d � d e
e j � Z Gd d � d e
e j � Z Gd d � d e
e j � Z e d k rYe j � n d S( i N( u mock( u supportu http://www.example.comu testc B s/ | Ee Z d Z d d � Z d d d � Z d S( u PopenMockc C s d S( Ni ( ( u self( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu poll s u PopenMock.pollc C s d S( Ni ( ( u selfu seconds( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu wait s u PopenMock.waitN( u __name__u
__module__u __qualname__u pollu Noneu wait( u
__locals__( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu PopenMock s u PopenMockc B s/ | Ee Z d Z d e g d i d d � Z d S( u CommandTestMixinu argsu kwc
C s� t � } t j | t d | � | j d t � } t | | � | | � t j j d d } | j | d t � | j
d � x4 | D], } | j | | � | j
| j | � � q� W| j | | � d S( uj Given 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.
u Popenu namei N(
u PopenMocku supportu patchu
subprocessu
browser_classu CMD_NAMEu getattru Popenu call_argsu assertEqualu popu assertInu index(
u selfu methu argsu kwu optionsu argumentsu popenu browseru
popen_argsu option( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu _test s
u CommandTestMixin._testN( u __name__u
__module__u __qualname__u URLu _test( u
__locals__( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu CommandTestMixin s u CommandTestMixinc B s) | Ee Z d Z e j Z d d � Z d S( u GenericBrowserCommandTestc C s | j d d g d t g �d S( Nu openu optionsu arguments( u _testu URL( u self( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu test_open3 s u# GenericBrowserCommandTest.test_openN( u __name__u
__module__u __qualname__u
webbrowseru GenericBrowseru
browser_classu test_open( u
__locals__( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu GenericBrowserCommandTest/ s u GenericBrowserCommandTestc B s) | Ee Z d Z e j Z d d � Z d S( u BackgroundBrowserCommandTestc C s | j d d g d t g �d S( Nu openu optionsu arguments( u _testu URL( u self( ( u9 /opt/alt/python33/lib64/python3.3/test/test_webbrowser.pyu test_open= s u&