Lines Matching refs:astuple
1139 self.assertEqual(astuple(C(5, [1])), (5, [1]))
1154 self.assertEqual(astuple(C(5, [1])), (5, [1]))
1168 self.assertEqual(astuple(C()), ([],))
1175 self.assertEqual(astuple(C()), ([],))
1504 self.assertEqual(astuple(c), (1, 0))
1505 self.assertEqual(astuple(c), astuple(c))
1506 self.assertIsNot(astuple(c), astuple(c))
1508 self.assertEqual(astuple(c), (1, 42))
1509 self.assertIs(type(astuple(c)), tuple)
1518 astuple(C)
1520 astuple(int)
1529 t = astuple(c)
1533 t = astuple(c)
1547 t = astuple(u)
1549 self.assertIsNot(astuple(u), astuple(u))
1551 self.assertEqual(astuple(u), ('Joe', (123, 2)))
1575 self.assertEqual(astuple(gl), (0, [('Alice', 1), ('Bob', 2)]))
1576 self.assertEqual(astuple(gt), (0, (('Alice', 1), ('Bob', 2))))
1577 self.assertEqual(astuple(gd), (0, {'first': ('Alice', 1), 'second': ('Bob', 2)}))
1588 self.assertEqual(astuple(Parent(Child([1]))), (([1],),))
1589 self.assertEqual(astuple(Parent(Child({1: 2}))), (({1: 2},),))
1600 t = astuple(c, tuple_factory=nt)
1602 self.assertIsNot(t, astuple(c, tuple_factory=nt))
1604 t = astuple(c, tuple_factory=nt)
1616 t = astuple(c)
1620 t = astuple(c, tuple_factory=list)
1828 self.assertEqual(astuple(c), (0, 'test1', 'test2'))