MCPcopy Create free account
hub / github.com/clips/pattern / testPickle

Method testPickle

pattern/web/soup/BeautifulSoupTests.py:284–289  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282 self.soup = BeautifulSoup(self.page)
283
284 def testPickle(self):
285 import pickle
286 dumped = pickle.dumps(self.soup, 2)
287 loaded = pickle.loads(dumped)
288 self.assertEqual(loaded.__class__, BeautifulSoup)
289 self.assertEqual(str(loaded), str(self.soup))
290
291 def testDeepcopy(self):
292 from copy import deepcopy

Callers

nothing calls this directly

Calls 1

strFunction · 0.85

Tested by

no test coverage detected