'Unlike most tree builders, HTMLParserTreeBuilder and will
be restored after pickling.'

def test_builder_is_pickled(self):

    tree = self.soup('<a><b>foo</a>')
    dumped = pickle.dumps(tree, 2)
    loaded = pickle.loads(dumped)
    self.assertTrue(isinstance(loaded.builder, type(tree.builder)))
