Lines Matching refs:dumps
38 self.assertEqual(self.dumps(enum), repr(enum.value))
39 self.assertEqual(float(self.dumps(enum)), enum)
40 self.assertEqual(self.loads(self.dumps(enum)), enum)
44 self.assertEqual(self.dumps(enum), expected)
46 self.assertEqual(float(self.dumps(enum)), enum)
47 self.assertEqual(self.loads(self.dumps(enum)), enum)
49 self.assertTrue(isnan(float(self.dumps(enum))))
50 self.assertTrue(isnan(self.loads(self.dumps(enum))))
54 self.assertEqual(self.dumps(enum), str(enum.value))
55 self.assertEqual(int(self.dumps(enum)), enum)
56 self.assertEqual(self.loads(self.dumps(enum)), enum)
59 self.assertEqual(self.dumps(list(BigNum)),
61 self.assertEqual(self.loads(self.dumps(list(BigNum))),
63 self.assertEqual(self.dumps(list(FloatNum)),
65 self.assertEqual(self.loads(self.dumps(list(FloatNum))),
67 self.assertEqual(self.dumps(list(WierdNum)),
69 self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
71 self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
82 nd = self.loads(self.dumps(d))
107 nd = self.loads(self.dumps(d))