def METHOD_NAME(self):
    # The lxml TreeBuilder is not picklable, so when unpickling
    # a document created with it, a new TreeBuilder of the
    # appropriate class is created.
    soup = self.soup("<a>some markup</a>")
    assert isinstance(soup.builder, self.default_builder)
    pickled = pickle.dumps(soup)
    unpickled = pickle.loads(pickled)
    assert "some markup" == unpickled.a.string
    assert unpickled.builder != soup.builder
    assert isinstance(unpickled.builder, self.default_builder)