0x1949 Team - FAZEMRX - MANAGER
Edit File: test_scheme_registration.cpython-310.pyc
o G�_� � @ sX d dl mZ d dlmZ ddlmZ ddlmZ ddlmZm Z m Z G dd � d e�Zd S )� )�unicode_literals)�cast� )�_url� )�HyperlinkTestCase)�register_scheme�URL� DecodedURLc @ sT e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� ZdS )�TestSchemeRegistrationc C s t tj�| _ttj�| _d S �N)�dictr �SCHEME_PORT_MAP�_orig_scheme_port_map�set�NO_NETLOC_SCHEMES�_orig_no_netloc_schemes��self� r �I/usr/lib/python3/dist-packages/hyperlink/test/test_scheme_registration.py�setUp s zTestSchemeRegistration.setUpc C s | j t_| jt_d S r )r r r r r r r r r �tearDown s zTestSchemeRegistration.tearDownc C s� t dddd� t�d�}|jdksJ �|jdksJ �|jdu s!J �t�d�}|jdd�}|�� dks4J �t�d �}|�� dksAJ �t d dd� td d �}|jdd�}|�� dksZJ �d S )N�deltronTi� ��uses_netloc�default_portzdeltron://example.comzdeltron:zexample.com)�hostzdeltron://example.com:3030�nonetroni� �r ��schemeznonetron://example.com)r r � from_textr! �portr �replace�to_text)r �u1�u2�u3�u4r r r �test_register_scheme_basic s z1TestSchemeRegistration.test_register_scheme_basicc C s6 t ddd� tdd�}|jdd�}|�� dksJ �d S )N� noloctronF�r r )�example�path)r. znoloctron:example/path)r r r$ r% )r r) r r r �test_register_no_netloc_scheme- s z5TestSchemeRegistration.test_register_no_netloc_schemec C s>