;
Fc @ s d Z d k Z d k Td e i f d YZ d e f d YZ d e f d YZ d e f d
YZ d e f d YZ d
e f d YZ d e f d YZ
d e f d YZ d e f d YZ d e f d YZ
d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ e d! j o e i n d S(" s Unit tests for Beautiful Soup.
These tests make sure the Beautiful Soup works as it should. If you
find a bug in Beautiful Soup, the best way to express it is as a test
case like this that fails.N( s *s SoupTestc B s t Z e e d Z RS( Nc C s7 | t j o
| } n | i t | | | d S( sR Parse the given text and make sure its string rep is the other
given text.N( s reps Nones toParses selfs assertEquals strs c( s selfs toParses reps c( ( sV /mnt/gmirror/ports/www/py-beautifulsoup/work/BeautifulSoup-3.0.4/BeautifulSoupTests.pys assertSoupEquals
s
( s __name__s
__module__s Nones
BeautifulSoups assertSoupEquals( ( ( sV /mnt/gmirror/ports/www/py-beautifulsoup/work/BeautifulSoup-3.0.4/BeautifulSoupTests.pys SoupTest s s
FollowThatTagc B s t Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z e
d Z d Z d
Z e
d Z d Z d Z d Z RS( s4 Tests the various ways of fetching tags from a soup.c C s d } t | | _ d S( Ns
1
2
3
4
4( s mls BeautifulStoneSoups selfs soup( s selfs ml( ( sV /mnt/gmirror/ports/www/py-beautifulsoup/work/BeautifulSoup-3.0.4/BeautifulSoupTests.pys setUp s c C s~ | i d } | i t | d | i | d i d | i | | i i d | i | | i i t d d S( Ns ai i ( s selfs soups matchings assertEquals lens names findAlls SoupStrainer( s selfs matching( ( sV /mnt/gmirror/ports/www/py-beautifulsoup/work/BeautifulSoup-3.0.4/BeautifulSoupTests.pys testFindAllByName! s
c C s | i i d d } | i t | d | i | d i d | i | d i d | i i d h d d <