Did I find the right examples for you? yes no

All Samples(116)  |  Call(86)  |  Derive(0)  |  Import(30)

src/r/w/rwet-examples-HEAD/web/bs4/tests/test_tree.py   rwet-examples(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Doctype,
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")

src/h/u/hue-HEAD/desktop/core/ext-py/requests-2.0.0/requests/packages/bs4/tests/test_tree.py   hue(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Comment,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/x/b/xbmctorrent-HEAD/resources/site-packages/bs4/tests/test_tree.py   xbmctorrent(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Comment,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/a/l/alfred-workflows-scientific-HEAD/reference-importer/src/bs4/tests/test_tree.py   alfred-workflows-scientific(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Doctype,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/a/l/alfred-workflows-scientific-HEAD/numpy-search/src/bs4/tests/test_tree.py   alfred-workflows-scientific(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Doctype,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/AlfredWorkflow.com-Search/bs4/tests/test_tree.py   AlfredWorkflow.com(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Doctype,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/p/o/pourover-HEAD/buster/lib/bs4/tests/test_tree.py   pourover(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Comment,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/o/p/OpenColorado-Tools-and-Utilities-HEAD/Scripts/Harvest/Drcog/bs4/tests/test_tree.py   OpenColorado-Tools-and-Utilities(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Doctype,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/k/i/KindleEar-HEAD/lib/bs4/tests/test_tree.py   KindleEar(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Comment,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

src/c/l/CloudBot-HEAD/lib/bs4/tests/test_tree.py   CloudBot(Download)
    HTMLParserTreeBuilder,
)
from bs4.element import (
    CData,
    Comment,
    def test_set_string_preserves_class_of_string(self):
        soup = self.soup("<a></a>")
        cdata = CData("foo")
        soup.a.string = cdata
        self.assertTrue(isinstance(soup.a.string, CData))
    def test_cdata(self):
        # None of the current builders turn CDATA sections into CData
        # objects, but you can create them manually.
        soup = self.soup("")
        cdata = CData("foo")
 
        soup = self.soup("")
        cdata = CData("<><><>")
        soup.insert(1, cdata)
        self.assertEqual(

  1 | 2 | 3  Next