Lines Matching refs:asdict
1327 self.assertEqual(asdict(c), {'x': 1, 'y': 2})
1328 self.assertEqual(asdict(c), asdict(c))
1329 self.assertIsNot(asdict(c), asdict(c))
1331 self.assertEqual(asdict(c), {'x': 42, 'y': 2})
1332 self.assertIs(type(asdict(c)), dict)
1341 asdict(C)
1343 asdict(int)
1352 d = asdict(c)
1356 d = asdict(c)
1370 d = asdict(u)
1372 self.assertIsNot(asdict(u), asdict(u))
1374 self.assertEqual(asdict(u), {'name': 'Joe',
1399 self.assertEqual(asdict(gl), {'id': 0, 'users': [{'name': 'Alice', 'id': 1},
1401 self.assertEqual(asdict(gt), {'id': 0, 'users': ({'name': 'Alice', 'id': 1},
1403 self.assertEqual(asdict(gd), {'id': 0, 'users': {'first': {'name': 'Alice', 'id': 1},
1415 self.assertEqual(asdict(Parent(Child([1]))), {'child': {'d': [1]}})
1416 self.assertEqual(asdict(Parent(Child({1: 2}))), {'child': {'d': {1: 2}}})
1424 d = asdict(c, dict_factory=OrderedDict)
1426 self.assertIsNot(d, asdict(c, dict_factory=OrderedDict))
1428 d = asdict(c, dict_factory=OrderedDict)
1440 d = asdict(c)
1452 d = asdict(c, dict_factory=OrderedDict)
1476 self.assertEqual(asdict(c), {'f': {T(a='an a'): 0}})
1490 d = asdict(c)
1634 self.assertEqual(asdict(cls(1, 2)), {'x': 1, 'y': 2})
1648 self.assertEqual(asdict(cls1(1)), {'x': 1, 'y': 5})