kr.motd.maven.sphinx.dist.bs4.tests.test_tree$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1 f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ 8Tests 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.
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
pdb java/lang/String set_trace org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ copy & importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ( )
* pickle , re . warnings 0 bs4 2
BeautifulSoup 4 bs4.builder 6 builder_registry 8 HTMLParserTreeBuilder : bs4.element < PY3K > CData @ Comment B Declaration D Doctype F NavigableString H SoupStrainer J Tag L bs4.testing N SoupTest P skipIf R getname .(Ljava/lang/String;)Lorg/python/core/PyObject; T U
V lookup X org/python/core/PyObject Z __getattr__ \ U
[ ] xml _ __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a b
[ c None e _isnot 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; g h
[ i XML_BUILDER_PRESENT k lxml m LXML_PRESENT o TreeTest q
TreeTest$1
__module__ t __name__ v org/python/core/Py x EmptyObjects [Lorg/python/core/PyObject; z { y | org/python/core/PyFunction ~ f_globals Lorg/python/core/PyObject; ? ? ? assertSelects$2 ?Make sure that the given tags have the correct text.
This is used in tests that define a bunch of tags, each
containing a single string, and then select certain strings by
some mechanism.
? getlocal (I)Lorg/python/core/PyObject; ? ?
? assertEqual ? org/python/core/PyList ? ()V ? ?
? ? append ? (ILorg/python/core/PyObject;)V # ?
? __iter__ ()Lorg/python/core/PyObject; ? ?
[ ? string ? __iternext__ ? ?
[ ? dellocal ?
? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a ?
[ ? f_lasti I ? ? ? e ? y ? bs4/tests/test_tree$py ? Lorg/python/core/PyCode; ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
?
assertSelects ? assertSelectsIDs$3 ?Make sure that the given tags have the correct IDs.
This is used in tests that define a bunch of tags, each
containing a single string, and then select certain strings by
some mechanism.
? id ? __getitem__ ? h
[ ? ? ? ? ? assertSelectsIDs ? getf_locals ? ?
? s ? ? ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
y ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? TestFind ?
TestFind$4 ?Basic tests of the find() method.
find() just calls find_all() with limit=1, so it's not tested all
that thouroughly here.
? test_find_tag$5 soup ? 1234 ? find ? b ? 2 ? ? ? ? ?
test_find_tag ? test_unicode_text_find$6 Räksmörgås
? org/python/core/PyUnicode ? /(Ljava/lang/String;)Lorg/python/core/PyUnicode; ?
? ?
Räksmörgås ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; a ?
[ ? ? ? ? ? test_unicode_text_find ? test_unicode_attribute_find$7 &here it is
? str ? getglobal ? U
?
here it is ? text ? ? ? test_unicode_attribute_find test_find_everything$8 )Test an optimization that finds all tags. foobar
newInteger (I)Lorg/python/core/PyInteger;
y len find_all 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; a
[ ? ? test_find_everything test_find_everything_with_name$9 ;Test an optimization that finds all tags with a given name. foobarbaz a ? ?" test_find_everything_with_name$ ? ? ?& TestFindAll( TestFindAll$10 %Basic tests of the find_all() method.+ test_find_all_text_nodes$11 'You can search the tree for text nodes.. Foobar»0 bar2 ([Lorg/python/core/PyObject;)V ?4
?5 Foo7 compile9 .*; »= True?- ? ?A test_find_all_text_nodesC test_find_all_limit$12 7You can limit the number of items returned by find_all.F (12345H limitJ 1L 3N 4P 5RE ? ?T test_find_all_limitV (test_calling_a_tag_is_calling_findall$13 !123Y foo[X ? ?] %test_calling_a_tag_is_calling_findall_ Wtest_find_all_with_self_referential_data_structure_does_not_cause_infinite_recursion$14 ba ? ?d Ttest_find_all_with_self_referential_data_structure_does_not_cause_infinite_recursionf test_find_all_resultset$15 %All find_all calls return a ResultSeti
assertTruek hasattrm sourceoh ? ?q test_find_all_resultsets* ? ?u TestFindAllBasicNamespacesw TestFindAllBasicNamespaces$16 test_find_by_namespaced_name$17 04 { mathml:msqrt} org/python/core/PyDictionary svg:fill? red?
?5 attrs? name?z ? ?? test_find_by_namespaced_name?y ? ?? TestFindAllByName? TestFindAllByName$18 &Test ways of finding tags by tag name.? setUp$19 super? setUp? ?First tag.
Second tag.
Third Nested tag. tag. ? tree? __setattr__?
[?? ? ?? test_find_all_by_tag_name$20
First tag.? Nested tag.?? ? ?? test_find_all_by_tag_name? !test_find_all_by_name_and_text$21 tag?? ? ?? test_find_all_by_name_and_text? $test_find_all_on_non_root_element$22 c?? ? ?? !test_find_all_on_non_root_element? (test_calling_element_invokes_find_all$23? ? ?? %test_calling_element_invokes_find_all? test_find_all_by_tag_strainer$24? ? ?? test_find_all_by_tag_strainer? test_find_all_by_tag_names$25 Second tag.?? ? ?? test_find_all_by_tag_names? test_find_all_by_tag_dict$26? ? ?? test_find_all_by_tag_dict? test_find_all_by_tag_re$27 ^[ab]$?? ? ?? test_find_all_by_tag_re? *test_find_all_with_tags_matching_method$28 id_matches_name$29 get? _eq? h
[?? ? ?? ?Match 1.
Does not match.
Match 2.? Match 1.? Match 2.?? ? ?? 'test_find_all_with_tags_matching_method? (test_find_with_multi_valued_attribute$30 H123? div? a d? a b? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;??
y?? ? ?? %test_find_with_multi_valued_attribute?? ? ?? TestFindAllByAttribute? TestFindAllByAttribute$31 "test_find_all_by_attribute_name$32 ?
Matching a.
Non-matching Matching b.a.
first Matching a. Matching b. ? ? test_find_all_by_attribute_name (test_find_all_by_utf8_attribute_value$33 םולש encode utf8 title decode something else
? ? %test_find_all_by_utf8_attribute_value "test_find_all_by_attribute_dict$340
Name match.
Class match.
Non-match.
A tag called 'name1'.
! name1# A tag called 'name1'.% Name match.' class) class2+ Class match.- ? ?/ test_find_all_by_attribute_dict1 test_find_all_by_class$35 ?
Class 1.
Class 2.
Class 1.
Class 3 and 4.
4 class_6 Class 1.8 Class 3 and 4.:3 ? ?< test_find_all_by_class> 3test_find_by_class_when_multiple_classes_present$36 #Found it A garC oE Found itG o bI@ ? ?K 0test_find_by_class_when_multiple_classes_presentM =test_find_all_with_non_dictionary_for_attrs_finds_by_class$37 Found itP baR big_attribute_value$38 _gtU h
[VT ? ?X small_attribute_value$39 _le[ h
[\Z ? ?^O ? ?` :test_find_all_with_non_dictionary_for_attrs_finds_by_classb =test_find_all_with_string_for_attrs_finds_multiple_classes$40 *e foo barg bar fooid ? ?k :test_find_all_with_string_for_attrs_finds_multiple_classesm *test_find_all_by_attribute_soupstrainer$41 i
Match.
Non-match.p Match.ro ? ?t 'test_find_all_by_attribute_soupstrainerv 'test_find_all_with_missing_attribute$42 ?ID present.
No ID present.
ID is empty.y No ID present.{x ? ?} $test_find_all_with_missing_attribute 'test_find_all_with_defined_attribute$43 ID present.? ID is empty.?? ? ?? $test_find_all_with_defined_attribute? 'test_find_all_with_numeric_attribute$44 [Unquoted attribute.
Quoted attribute.? Unquoted attribute.? Quoted attribute.?? ? ?? $test_find_all_with_numeric_attribute? +test_find_all_with_list_attribute_values$45 ?1
2
3
No ID.?? ? ?? (test_find_all_with_list_attribute_values? 8test_find_all_with_regular_expression_attribute_value$46 ?One a.
Two as.
Mixed as and bs.
One b.
No ID.? ^a+$? One a.? Two as.?? ? ?? 5test_find_all_with_regular_expression_attribute_value? *test_find_by_name_and_containing_string$47 foobarfoo?? ? ?? 'test_find_by_name_and_containing_string? @test_find_by_name_and_containing_string_when_string_is_buried$48 "foofoo ?? ? ?? =test_find_by_name_and_containing_string_when_string_is_buried? /test_find_by_attribute_and_containing_string$49 "foofoo?? ? ?? ,test_find_by_attribute_and_containing_string?? ? ?? TestIndex? TestIndex$50 Test Tag.index?
test_index$51h? enumerate? contents? index? assertRaises?
ValueError? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a?
[?? ? ??
test_index?? ? ?? TestParentOperations? TestParentOperations$52 ;Test navigation and searching through an element's parents.? setUp$531
Start here
? start?? ? ?? test_parent$54 parent? bottom? middle? top?? ? ?? test_parent? (test_parent_of_top_tag_is_soup_object$55? ? ?? %test_parent_of_top_tag_is_soup_object? !test_soup_object_has_no_parent$56? ? ?? test_soup_object_has_no_parent? test_find_parents$57 find_parents? ul? ? ? test_find_parents test_find_parent$58 find_parent ? ?
test_find_parent test_parent_of_text_element$59
Start here ? ? test_parent_of_text_element test_text_element_find_parent$60 ? ? test_text_element_find_parent test_parent_generator$61 parents __nonzero__ ()Z
[ _in! h
[" ? ?$ test_parent_generator&? ? ?(
ProximityTest* ProximityTest$62 setUp$63 gOneTwoThree.- ? ?0, ? ?2 TestNextOperations4 TestNextOperations$64 setUp$657 ? ?8 test_next$66 next_element; One=: ? ?? test_nextA !test_next_of_last_item_is_none$67 ThreeDC ? ?F test_next_of_last_item_is_noneH test_next_of_root_is_none$68J ? ?K test_next_of_root_is_noneM test_find_all_next$69
find_all_nextP TwoRO ? ?T test_find_all_nextV test_find_next$70 find_nextYX ? ?[ test_find_next] "test_find_next_for_text_element$71_ ? ?` test_find_next_for_text_elementb test_next_generator$72
next_elementsed ? ?g test_next_generatori6 ? ?k TestPreviousOperationsm TestPreviousOperations$73 setUp$74 endqp ? ?s test_previous$75 previous_elementvu ? ?x
test_previousz &test_previous_of_first_item_is_none$76 html}| ? ? #test_previous_of_first_item_is_none? test_previous_of_root_is_none$77? ? ?? test_previous_of_root_is_none? test_find_all_previous$78 find_all_previous?? ? ?? test_find_all_previous? test_find_previous$79
find_previous?? ? ?? test_find_previous? &test_find_previous_for_text_element$80? ? ?? #test_find_previous_for_text_element? test_previous_generator$81 previous_elements? body? head?? ? ?? test_previous_generator?o ? ?? SiblingTest? SiblingTest$82 setUp$83?
?
\s*? sub? ?? ? ??? ? ?? TestNextSibling? TestNextSibling$84 setUp$85? ? ?? $test_next_sibling_of_root_is_none$86 next_sibling?? ? ?? !test_next_sibling_of_root_is_none? test_next_sibling$87 1.1?? ? ?? test_next_sibling? "test_next_sibling_may_not_exist$88? ? ?? test_next_sibling_may_not_exist? test_find_next_sibling$89 find_next_sibling? span?? ? ?? test_find_next_sibling? test_next_siblings$90 find_next_siblings?? ? ?? test_next_siblings? %test_next_sibling_for_text_element$91 Foobarbaz? baz? nonesuch?? ? ?? "test_next_sibling_for_text_element?? ? ?? TestPreviousSibling? TestPreviousSibling$92 setUp$93? ? ?? (test_previous_sibling_of_root_is_none$94 previous_sibling?? ? ?? %test_previous_sibling_of_root_is_none? test_previous_sibling$95 3.1?? ? ?? test_previous_sibling &test_previous_sibling_may_not_exist$96 ? ? #test_previous_sibling_may_not_exist test_find_previous_sibling$97 find_previous_sibling ? ?
test_find_previous_sibling test_previous_siblings$98 find_previous_siblings ? ? test_previous_siblings )test_previous_sibling_for_text_element$99 ? ? &test_previous_sibling_for_text_element? ? ? TestTagCreation TestTagCreation$100 $Test the ability to create new tags. test_new_tag$101 new_tag"
isinstance$ dict&! ? ?( test_new_tag* 5test_tag_inherits_self_closing_rules_from_builder$102 lxml-xml- br/ p1
3 5 html.parser7 9, ? ?; 1test_tag_inherits_self_closing_rules_from_builder= +test_new_string_creates_navigablestring$103
new_string@? ? ?B 'test_new_string_creates_navigablestringD 7test_new_string_can_create_navigablestring_subclass$104F ? ?G 3test_new_string_can_create_navigablestring_subclassI ? ?K TestTreeModificationM TestTreeModification$105 test_attribute_modification$106 Q __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)VST
[U document_forW Y __delitem__ (Lorg/python/core/PyObject;)V[\
[] id2_ aP ? ?c test_attribute_modificatione test_new_tag_creation$107
h builderj oll http://foo.com/n hrefp insertr 4
tg ? ?v test_new_tag_creationx %test_append_to_contents_moves_tag$108 TDon't leave me here.
Don't leave!
{ DDon't leave me .
Don't leave!here
}z ? ? !test_append_to_contents_moves_tag? 5test_replace_with_returns_thing_that_was_replaced$109 ? replace_with?? ? ?? 1test_replace_with_returns_thing_that_was_replaced? /test_unwrap_returns_thing_that_was_replaced$110 ? unwrap?? ? ?? +test_unwrap_returns_thing_that_was_replaced? Mtest_replace_with_and_unwrap_give_useful_exception_when_tag_has_no_parent$111 FooBar ? extract?? ? ?? Itest_replace_with_and_unwrap_give_useful_exception_when_tag_has_no_parent? test_replace_tag_with_itself$112 -Foo ?? ? ?? test_replace_tag_with_itself? 5test_replace_tag_with_its_parent_raises_exception$113 ?? ? ?? 1test_replace_tag_with_its_parent_raises_exception? 0test_insert_tag_into_itself_raises_exception$114 ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a?
[?? ? ?? ,test_insert_tag_into_itself_raises_exception? 7test_replace_with_maintains_next_element_throughout$115 onethree
? two? replaceWith? three?? ? ?? 3test_replace_with_maintains_next_element_throughout? test_replace_final_node$116 Argh!? Argh!? Hooray!?? ? ?? test_replace_final_node? test_consecutive_text_nodes$117 Argh! ? !Argh!Hooray! ?? ? ?? test_consecutive_text_nodes? test_insert_string$118? ? ?? test_insert_string? test_insert_tag$119 default_builder? %Findlady! ? magictag? the? =Findthe lady! ? Find?? ? ?? test_insert_tag? .test_append_child_thats_already_at_the_end$120? ? ?? *test_append_child_thats_already_at_the_end? (test_move_tag_to_beginning_of_parent$121 ? d? ?? ? ?? $test_move_tag_to_beginning_of_parent? *test_insert_works_on_empty_element_tag$122 Contents?
Contents?? ? ? &test_insert_works_on_empty_element_tag test_insert_before$123
insert_before BAZ QUUX QUUXfooBAZbar QUUXbarfooBAZ
? ? test_insert_before test_insert_after$124 insert_after fooQUUXbarBAZ ? ? test_insert_after >test_insert_after_raises_exception_if_after_has_no_meaning$125 NotImplementedError ? ? :test_insert_after_raises_exception_if_after_has_no_meaning! Jtest_insert_before_raises_notimplementederror_if_before_has_no_meaning$126# ? ?$ Ftest_insert_before_raises_notimplementederror_if_before_has_no_meaning& test_replace_with$127 ;There's no business like show business
) 0There's business like no business
+ no- business/( ? ?1 test_replace_with3 test_replace_first_child$128 65 ? ?8 test_replace_first_child: test_replace_last_child$129<