kr.motd.maven.sphinx.dist.bs4.testing$py.class Maven / Gradle / Ivy
Show all versions of sphinx-maven-plugin Show documentation
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ Helper classes for tests. 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
MIT __license__ setlocal
pickle org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; " #
! $ copy & functools ( unittest * java/lang/String , TestCase .
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; 0 1
! 2 bs4 4
BeautifulSoup 6 bs4.element 8 CharsetMetaAttributeValue : Comment < ContentMetaAttributeValue > Doctype @ SoupStrainer B bs4.builder D HTMLParserTreeBuilder F getname .(Ljava/lang/String;)Lorg/python/core/PyObject; H I
J default_builder L org/python/core/PyObject N __getattr__ P I
O Q SoupTest S
SoupTest$1
__module__ V __name__ X org/python/core/Py Z EmptyObjects [Lorg/python/core/PyObject; \ ] [ ^ org/python/core/PyFunction ` f_globals Lorg/python/core/PyObject; b c d default_builder$2 getglobal g I
h __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; j k
O l f_lasti I n o p bs4/testing$py r Lorg/python/core/PyCode; f t s u j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V w x
a y property { S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; j }
O ~ soup$3 *Build a Beautiful Soup object from markup. ? getlocal (I)Lorg/python/core/PyObject; ? ?
? pop ? builder ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; j ?
O ? (ILorg/python/core/PyObject;)V ?
?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
O ? ? t s ? soup ? document_for$4 [Turn an HTML fragment into a document.
The details depend on the builder.
? test_fragment_to_document ? ? t s ? document_for ? None ? assertSoupEquals$5 g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; j ?
O ? _is 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
O ? __nonzero__ ()Z ? ?
O ? assertEqual ? decode ? ? c [ ? ? t s ? assertSoupEquals ? assertConnectedness$6 yEnsure that next_element and previous_element are properly
set for all descendants of the given element.
? descendants ? __iter__ ()Lorg/python/core/PyObject; ? ?
O ? next_element ? previous_element ? __iternext__ ? ?
O ? ? t s ? assertConnectedness ? getf_locals ? ?
? U t s ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
[ ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? object ? HTMLTreeBuilderSmokeTest ? HTMLTreeBuilderSmokeTest$7CA basic test of a treebuilder's competence.
Any HTML treebuilder, present or future, should be able to pass
these tests. With invalid markup, there's room for interpretation,
and different parsers can handle it differently. But with the
markup in these tests, there's not much room for interpretation.
? test_empty_element_tags$8 mVerify that all HTML4 and HTML5 empty element (aka void element) tags
are handled correctly.
? org/python/core/PyList ? area ? base ? br ? col ? embed ? hr ? img ? input ? keygen ? link ? menuitem ? meta ? param source track wbr spacer frame ([Lorg/python/core/PyObject;)V w
? new_tag True is_empty_element ? t s test_empty_element_tags #test_pickle_and_unpickle_identity$9
foo dumps
newInteger (I)Lorg/python/core/PyInteger;!"
[# loads% __class__' t s) !test_pickle_and_unpickle_identity+ assertDoctypeHandled$10 8Assert that a given doctype string is handled correctly.. _document_with_doctype0 unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;23
[4 contents6 __getitem__8 ?
O9 str; len= __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;?@
OA pC fooE- t sG assertDoctypeHandledI _document_with_doctype$11 5Generate and parse a document with the given doctype.L
N _modP ?
OQ
foo
S _addU ?
OV org/python/core/PyTupleX
YK t s[ test_normal_doctypes$12 ?Make sure normal, everyday HTML doctypes are handled correctly.^ html` 4html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"b] t sd test_normal_doctypesf test_empty_doctype$13
i stripkh t sm test_empty_doctypeo test_public_doctype_with_url$14 nhtml PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"rq t st test_public_doctype_with_urlv test_system_doctype$15 $foo SYSTEM "http://www.example.com/"yx t s{ test_system_doctype} !test_namespaced_system_doctype$16 #xsl:stylesheet SYSTEM "htmlent.dtd"? t s? test_namespaced_system_doctype? !test_namespaced_public_doctype$17 #xsl:stylesheet PUBLIC "htmlent.dtd"?? t s? test_namespaced_public_doctype? test_real_xhtml_document$18 JA real XHTML document should come out more or less the same as it went in.? ?
Hello.
Goodbye.
? encode? utf-8? replace?
?? t s? test_real_xhtml_document? test_processing_instruction$19 ? org/python/core/PyUnicode? /(Ljava/lang/String;)Lorg/python/core/PyUnicode; ?
?? utf8?? t s? test_processing_instruction? test_deepcopy$20 ?Make sure you can copy the tree builder.
This is important because the builder is part of a
BeautifulSoup object, and we want to be able to copy that.
? deepcopy?? t s?
test_deepcopy? $test_p_tag_is_never_empty_element$21 ?A tag is never designated as an empty-element tag.
Even if the markup shows it as an empty-element tag, it
shouldn't be presented that way.
?
? assertFalse? ?? t s? !test_p_tag_is_never_empty_element? test_unclosed_tags_get_closed$22 ?A tag that's not closed by the end of the document should be closed.
This applies to all tags except empty-element tags.
? ? ? ?
?
?? t s? test_unclosed_tags_get_closed? &test_br_is_always_empty_element_tag$23 ?A
tag is designated as an empty-element tag.
Some parsers treat
as one
tag, some parsers as
two tags, but it should always be an empty-element tag.
?
?
assertTrue?? t s? #test_br_is_always_empty_element_tag? "test_nested_formatting_elements$24 ?? t s? test_nested_formatting_elements? test_double_head$25 ?
Ordinary HEAD element test
Hello, world!
? text/javascript? find? script? type?? t s? test_double_head? test_comment$26
foobaz
? foobar? text? baz?? t s? test_comment? 0test_preserved_whitespace_in_pre_and_textarea$27 Whitespace must be preserved in and