
    afA                     j    d dl Z d dlmZmZ  G d de j                  Z G d de j                  ZdS )    N)
create_url	parse_urlc                   P    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd ZdS )TestCreateRsUrlc                 L    |                      t          d          d           d S )N	localhostzrs://localhost:80assertEqualr   selfs    \/var/www/html/env/lib/python3.11/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pytest_create_url01z!TestCreateRsUrl.test_create_url01"   s'    K002EFFFFF    c                 P    |                      t          dd          d           d S )Nr   i  portzrs://localhost:8090r	   r   s    r   test_create_url02z!TestCreateRsUrl.test_create_url02%   s,    Kd;;;=RSSSSSr   c                 P    |                      t          dd          d           d S )Nr   T)isSecurerss://localhost:443r	   r   s    r   test_create_url03z!TestCreateRsUrl.test_create_url03(   s,    K$???AVWWWWWr   c                 R    |                      t          ddd          d           d S )Nr   T  r   r   r   r	   r   s    r   test_create_url04z!TestCreateRsUrl.test_create_url04+   s.    K$SIIIK`aaaaar   c                 R    |                      t          ddd          d           d S )Nr   TP   r   zrss://localhost:80r	   r   s    r   test_create_url05z!TestCreateRsUrl.test_create_url05.   s.    K$RHHHJ^_____r   c                 P    |                      t          dd          d           d S )Nunix	file.sockr   rs://unix:file.sockr	   r   s    r   test_create_url06z!TestCreateRsUrl.test_create_url061   s,    F===?TUUUUUr   c                 P    |                      t          dd          d           d S )Nr    /tmp/file.sockr   rs://unix:/tmp/file.sockr	   r   s    r   test_create_url07z!TestCreateRsUrl.test_create_url074   s-    F1ABBBD^_____r   c                 P    |                      t          dd          d           d S )Nr    ../file.sockr   rs://unix:../file.sockr	   r   s    r   test_create_url08z!TestCreateRsUrl.test_create_url087   s,    F@@@BZ[[[[[r   c                 R    |                      t          ddd          d           d S )Nr    Tr!   r   rss://unix:file.sockr	   r   s    r   test_create_url09z!TestCreateRsUrl.test_create_url09:   s.    FTLLLNdeeeeer   c                 R    |                      t          ddd          d           d S )Nr    Tr%   r   rss://unix:/tmp/file.sockr	   r   s    r   test_create_url10z!TestCreateRsUrl.test_create_url10=   s/    FT@PQQQSnooooor   c                 R    |                      t          ddd          d           d S )Nr    Tr)   r   rss://unix:../file.sockr	   r   s    r   test_create_url11z!TestCreateRsUrl.test_create_url11@   s.    FTOOOQjkkkkkr   N)__name__
__module____qualname__r   r   r   r   r   r#   r'   r+   r.   r1   r4    r   r   r   r       s        G G GT T TX X Xb b b` ` `V V V` ` `\ \ \f f fp p pl l l l lr   r   c                   z    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd ZdS )TestParseWsUrlc                 L    |                      t          d          d           d S )Nzrs://localhost)Fr   r   r
   r   r   s    r   test_parse_url01zTestParseWsUrl.test_parse_url01H   s(    #3446NOOOOOr   c                 L    |                      t          d          d           d S )Nzrss://localhost)Tr   r   r<   r   s    r   test_parse_url02zTestParseWsUrl.test_parse_url02K   s(    #4557OPPPPPr   c                 L    |                      t          d          d           d S )Nzrs://localhost:9000)Fr   (#  r<   r   s    r   test_parse_url03zTestParseWsUrl.test_parse_url03N   s(    #899;UVVVVVr   c                 L    |                      t          d          d           d S )Nzrss://localhost:9000)Tr   rA   r<   r   s    r   test_parse_url04zTestParseWsUrl.test_parse_url04Q   s(    #9::<UVVVVVr   c                 H    |                      t          t          d           d S )Nzws://localhostassertRaises	Exceptionr   r   s    r   test_parse_url05zTestParseWsUrl.test_parse_url05T   s!    )Y0@AAAAAr   c                 H    |                      t          t          d           d S )Nzwss://localhostrF   r   s    r   test_parse_url06zTestParseWsUrl.test_parse_url06W   s!    )Y0ABBBBBr   c                 H    |                      t          t          d           d S )Nzws://localhost:80rF   r   s    r   test_parse_url07zTestParseWsUrl.test_parse_url07Z   s!    )Y0CDDDDDr   c                 H    |                      t          t          d           d S )Nzrs://localhost/somepathrF   r   s    r   test_parse_url08zTestParseWsUrl.test_parse_url08]   !    )Y0IJJJJJr   c                 H    |                      t          t          d           d S )Nzrs://localhost#somefragrF   r   s    r   test_parse_url09zTestParseWsUrl.test_parse_url09`   rP   r   c                 H    |                      t          t          d           d S )Nzrs://localhost?foo=barrF   r   s    r   test_parse_url10zTestParseWsUrl.test_parse_url10c   s!    )Y0HIIIIIr   c                 H    |                      t          t          d           d S )Nzrss://rF   r   s    r   test_parse_url11zTestParseWsUrl.test_parse_url11f   s     )Y99999r   c                 H    |                      t          t          d           d S )Nzrs://rF   r   s    r   test_parse_url12zTestParseWsUrl.test_parse_url12i   s     )Y88888r   c                 L    |                      t          d          d           d S )Nr"   )Fr    r!   r<   r   s    r   test_parse_url13zTestParseWsUrl.test_parse_url13l   s(    #899;WXXXXXr   c                 L    |                      t          d          d           d S )Nr&   )Fr    r%   r<   r   s    r   test_parse_url14zTestParseWsUrl.test_parse_url14o   s(    #=>>@abbbbbr   c                 L    |                      t          d          d           d S )Nr*   )Fr    r)   r<   r   s    r   test_parse_url15zTestParseWsUrl.test_parse_url15r   s(    #;<<>]^^^^^r   c                 L    |                      t          d          d           d S )Nr-   )Tr    r!   r<   r   s    r   test_parse_url16zTestParseWsUrl.test_parse_url16u   s(    #9::<WXXXXXr   c                 L    |                      t          d          d           d S )Nr0   )Tr    r%   r<   r   s    r   test_parse_url17zTestParseWsUrl.test_parse_url17x   s(    #>??Aabbbbbr   c                 L    |                      t          d          d           d S )Nr3   )Tr    r)   r<   r   s    r   test_parse_url18zTestParseWsUrl.test_parse_url18{   s(    #<==?]^^^^^r   N)r5   r6   r7   r=   r?   rB   rD   rI   rK   rM   rO   rR   rT   rV   rX   rZ   r\   r^   r`   rb   rd   r8   r   r   r:   r:   D   sT       P P PQ Q QW W WW W WB B BC C CE E EK K KK K KJ J J: : :9 9 9Y Y Yc c c_ _ _Y Y Yc c c_ _ _ _ _r   r:   )unittestautobahn.rawsocket.utilr   r   TestCaser   r:   r8   r   r   <module>rh      s   6  9 9 9 9 9 9 9 9!l !l !l !l !lh' !l !l !lH8_ 8_ 8_ 8_ 8_X& 8_ 8_ 8_ 8_ 8_r   