Lines Matching refs:cPickle
313 import cPickle
314 for proto in range(cPickle.HIGHEST_PROTOCOL + 1):
315 self.assertIs(cPickle.loads(cPickle.dumps(True, proto)), True)
316 self.assertIs(cPickle.loads(cPickle.dumps(False, proto)), False)
319 import pickle, cPickle
321 self.assertIs(pickle.loads(cPickle.dumps(True, proto)), True)
322 self.assertIs(pickle.loads(cPickle.dumps(False, proto)), False)
323 self.assertIs(cPickle.loads(pickle.dumps(True, proto)), True)
324 self.assertIs(cPickle.loads(pickle.dumps(False, proto)), False)
327 import pickle, cPickle
332 self.assertEqual(cPickle.dumps(True, protocol=0), "I01\n.")
333 self.assertEqual(cPickle.dumps(False, protocol=0), "I00\n.")
336 self.assertEqual(cPickle.dumps(True, protocol=1), "I01\n.")
337 self.assertEqual(cPickle.dumps(False, protocol=1), "I00\n.")
340 self.assertEqual(cPickle.dumps(True, protocol=2), b'\x80\x02\x88.')
341 self.assertEqual(cPickle.dumps(False, protocol=2), b'\x80\x02\x89.')