| Server IP : 118.27.122.248 / Your IP : 216.73.216.15 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3
x2_� � @ s d dl Z d dlZd dlZd dlmZ d dlmZ dZdZG dd� dej�Z G dd � d �Z
G d
d� de
ej�ZG dd
� d
e
ej�Z
G dd� de
ej�ZG dd� de
ej�ZG dd� de
ej�ZG dd� de
ej�ZG dd� de
ej�ZG dd� de
ej�Zedk�r
ej� dS )� N)�mock)�supportzhttp://www.example.com�testc @ s e Zd Zdd� Zddd�ZdS )� PopenMockc C s dS )Nr � )�selfr r �9/opt/alt/python36/lib64/python3.6/test/test_webbrowser.py�poll s zPopenMock.pollNc C s dS )Nr r )r Zsecondsr r r �wait s zPopenMock.wait)N)�__name__�
__module__�__qualname__r r
r r r r r s r c @ s e Zd Zegi d�dd�ZdS )�CommandTestMixin)�args�kwc
C s� t � }tj| td|� | jtd�}t||�||� tjjd d }| j |d t� |j
d� x(|D ] } | j| |� |j
|j| �� qbW | j ||� dS )aj 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.
�Popen)�namer N)
r r Zpatch�
subprocess�
browser_class�CMD_NAME�getattrr � call_argsZassertEqual�popZassertIn�index)
r �methr r �options� arguments�popenZbrowserZ
popen_argsZoptionr r r �_test s
zCommandTestMixin._testN)r r r
�URLr r r r r r s r c @ s e Zd ZejZdd� ZdS )�GenericBrowserCommandTestc C s | j dg tgd� d S )N�open)r r )r r )r r r r � test_open3 s z#GenericBrowserCommandTest.test_openN)r r r
�
webbrowserZGenericBrowserr r"