| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/bs4/tests/__pycache__/ |
Upload File : |
�
V �g7� � �� � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m
Z
mZmZm
Z
ddlmZ ddlmZ G d � d
e� Z G d� de� Z G d
� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� d e� Z G d!� d"e� Z G d#� d$e� Z G d%� d&e� Z g d'�Z! G d(� d)e� Z" G d*� d+e� Z#y),a8 Tests for Beautiful Soup's tree traversal methods.
The tree traversal methods are the main advantage of using Beautiful
Soup over just using a parser.
Different parsers will build different Beautiful Soup trees given the
same markup, but all Beautiful Soup trees can be traversed with the
methods tested here.
� N)�
BeautifulSoup)�builder_registry)�!AttributeResemblesVariableWarning�CData�Comment�NavigableString�Tag)�SoupStrainer� )�SoupTestc �: � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
y )
�TestFindz&Basic tests of the find() method.
c �f � | j d� }|j d� j dk( sJ �y )Nz <a>1</a><b>2</b><a>3</a><b>4</b>�b�2)�soup�find�string��selfr s �5C:\Python312\Lib\site-packages\bs4/tests/test_tree.py�
test_find_tagzTestFind.test_find_tag"