Lines Matching refs:dumps
303 self.assertIs(marshal.loads(marshal.dumps(True)), True)
304 self.assertIs(marshal.loads(marshal.dumps(False)), False)
309 self.assertIs(pickle.loads(pickle.dumps(True, proto)), True)
310 self.assertIs(pickle.loads(pickle.dumps(False, proto)), False)
315 self.assertIs(cPickle.loads(cPickle.dumps(True, proto)), True)
316 self.assertIs(cPickle.loads(cPickle.dumps(False, proto)), False)
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)
330 self.assertEqual(pickle.dumps(True, protocol=0), "I01\n.")
331 self.assertEqual(pickle.dumps(False, protocol=0), "I00\n.")
332 self.assertEqual(cPickle.dumps(True, protocol=0), "I01\n.")
333 self.assertEqual(cPickle.dumps(False, protocol=0), "I00\n.")
334 self.assertEqual(pickle.dumps(True, protocol=1), "I01\n.")
335 self.assertEqual(pickle.dumps(False, protocol=1), "I00\n.")
336 self.assertEqual(cPickle.dumps(True, protocol=1), "I01\n.")
337 self.assertEqual(cPickle.dumps(False, protocol=1), "I00\n.")
338 self.assertEqual(pickle.dumps(True, protocol=2), b'\x80\x02\x88.')
339 self.assertEqual(pickle.dumps(False, protocol=2), b'\x80\x02\x89.')
340 self.assertEqual(cPickle.dumps(True, protocol=2), b'\x80\x02\x88.')
341 self.assertEqual(cPickle.dumps(False, protocol=2), b'\x80\x02\x89.')