Lines Matching refs:loads
9 rval = self.loads('1.1', parse_float=decimal.Decimal)
14 rval = self.loads('1', parse_int=float)
22 rval = self.loads('{ "key" : "value" , "k":"v" }')
26 self.assertEqual(self.loads('{}'), {})
27 self.assertEqual(self.loads('[]'), [])
28 self.assertEqual(self.loads('""'), u"")
29 self.assertIsInstance(self.loads('""'), unicode)
35 self.assertEqual(self.loads(s), eval(s))
36 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
39 od = self.loads(s, object_pairs_hook=OrderedDict)
43 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
47 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
49 self.assertEqual(self.loads('{"empty": {}}',
56 self.assertRaisesRegexp(ValueError, msg, self.loads, s)
61 self.assertRaisesRegexp(ValueError, msg, self.loads, s)