Lines Matching refs:markup

26     def soup(self, markup, **kwargs):  argument
29 return BeautifulSoup(markup, builder=builder, **kwargs)
31 def document_for(self, markup): argument
36 return self.default_builder.test_fragment_to_document(markup)
74 markup = doctype + '\n<p>foo</p>'
75 soup = self.soup(markup)
106 markup = b"""<?xml version="1.0" encoding="utf-8"?>
112 soup = self.soup(markup)
115 markup.replace(b"\n", b""))
160 markup = "<p>foo<!--foobar-->baz</p>"
161 self.assertSoupEquals(markup)
163 soup = self.soup(markup)
198 markup = ('<table id="1">'
206 markup,
220 markup = '<table><div><div class="css"></div></div></table>'
221 soup = self.soup(markup)
262markup = b'<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mathml="http://www.w3.org/1998/Math/Ma…
263 soup = self.soup(markup)
264 self.assertEqual(markup, soup.encode())
273 markup = b'<a class="foo bar">'
274 soup = self.soup(markup)
288markup = u'<html><head><meta encoding="euc-jp"></head><body>Sacr\N{LATIN SMALL LETTER E WITH ACUTE…
289 soup = self.soup(markup)
473 markup = b"""<?xml version="1.0" encoding="utf-8"?>
479 soup = self.soup(markup)
481 soup.encode("utf-8"), markup)
496markup = u'<?xml version="1.0" encoding="euc-jp"><root>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} ble…
497 soup = self.soup(markup)
501markup = '<rss xmlns:dc="foo"><dc:creator>b</dc:creator><dc:date>2012-07-02T20:33:42Z</dc:date><dc…
502 soup = self.soup(markup)
504 unicode(soup.rss), markup)
514 markup = (b'<?xml version="1.0" encoding="utf-8"?>\n<root>'
517 soup = self.soup(markup)
518 self.assertEqual(soup.encode("utf-8"), markup)
526markup = '<root xmlns:a="http://example.com/" xmlns:b="http://example.net/"><a:foo>This tag is in …
527 soup = self.soup(markup)
533 markup = '<p xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:date>20010504</dc:date></p>'
534 soup = self.soup(markup)
535 self.assertEqual(unicode(soup.p), markup)
538markup = '<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><bar xsi:schemaLocation="http…
539 soup = self.soup(markup)
540 self.assertEqual(unicode(soup.foo), markup)
543 markup = '<foo xml:lang="fr">bar</foo>'
544 soup = self.soup(markup)
545 self.assertEqual(unicode(soup.foo), markup)
556 markup = "<a>"
557 soup = self.soup(markup)
561 markup = '<svg><circle/></svg>'
562 soup = self.soup(markup)
569 markup = '<math><msqrt>5</msqrt></math>'
570 soup = self.soup(markup)
576 markup = '<?xml version="1.0" encoding="utf-8"?><html></html>'
577 soup = self.soup(markup)