Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
opt
›
alt
›
python38
›
lib64
›
python3.8
›
test
›
__pycache__
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ test_webbrowser.cpython-38.opt-1.pyc
← Back
U i�f�) � @ sB d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ dZdZ G dd� dej �ZG dd � d �ZG d d� deej �ZG dd � d eej �ZG dd� deej �ZG dd� deej �ZG dd� deej �ZG dd� deej �ZG dd� deej �ZG dd� deej �ZG dd� dej �ZG dd� dej �Zedk�r>e�� dS )� N)�mock)�supportzhttp://www.example.com�testc @ s e Zd Zdd� Zddd�ZdS )� PopenMockc C s dS �Nr � ��selfr r �9/opt/alt/python38/lib64/python3.8/test/test_webbrowser.py�poll s zPopenMock.pollNc C s dS r 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 � }t�| td|� | jtd�}t||�||� tjjd d }| � |d t� |� d� |D ] } | �| |� |� |�| �� q`| � ||� 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 Z call_args�assertEqual�pop�assertIn�index) r Zmethr r �options� arguments�popen�browserZ 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"