Lines Matching refs:asdict
1345 asdict(obj)
1381 self.assertEqual(asdict(c), {'x': 1, 'y': 2})
1382 self.assertEqual(asdict(c), asdict(c))
1383 self.assertIsNot(asdict(c), asdict(c))
1385 self.assertEqual(asdict(c), {'x': 42, 'y': 2})
1386 self.assertIs(type(asdict(c)), dict)
1395 asdict(C)
1397 asdict(int)
1406 d = asdict(c)
1410 d = asdict(c)
1424 d = asdict(u)
1426 self.assertIsNot(asdict(u), asdict(u))
1428 self.assertEqual(asdict(u), {'name': 'Joe',
1453 self.assertEqual(asdict(gl), {'id': 0, 'users': [{'name': 'Alice', 'id': 1},
1455 self.assertEqual(asdict(gt), {'id': 0, 'users': ({'name': 'Alice', 'id': 1},
1457 self.assertEqual(asdict(gd), {'id': 0, 'users': {'first': {'name': 'Alice', 'id': 1},
1469 self.assertEqual(asdict(Parent(Child([1]))), {'child': {'d': [1]}})
1470 self.assertEqual(asdict(Parent(Child({1: 2}))), {'child': {'d': {1: 2}}})
1478 d = asdict(c, dict_factory=OrderedDict)
1480 self.assertIsNot(d, asdict(c, dict_factory=OrderedDict))
1482 d = asdict(c, dict_factory=OrderedDict)
1494 d = asdict(c)
1506 d = asdict(c, dict_factory=OrderedDict)
1530 self.assertEqual(asdict(c), {'f': {T(a='an a'): 0}})
1544 d = asdict(c)
1688 self.assertEqual(asdict(cls(1, 2)), {'x': 1, 'y': 2})
1702 self.assertEqual(asdict(cls1(1)), {'x': 1, 'y': 5})