def test_builder_is_pickled(self):
    'Unlike most tree builders, HTMLParserTreeBuilder and will\n        be restored after pickling.\n        '
    tree = self.soup('<a><b>foo</a>')
    dumped = pickle.dumps(tree, 2)
    loaded = pickle.loads(dumped)
    self.assertTrue(isinstance(loaded.builder, type(tree.builder)))
Unlike most tree builders, HTMLParserTreeBuilder and will
be restored after pickling.
def test_builder_is_pickled(self):
    'Unlike most tree builders, HTMLParserTreeBuilder and will\n        be restored after pickling.\n        '
    tree = self.soup('<a><b>foo</a>')
    dumped = pickle.dumps(tree, 2)
    loaded = pickle.loads(dumped)
    self.assertTrue(isinstance(loaded.builder, type(tree.builder)))