Lines Matching refs:state
710 """Test if pickle restores properly the internal state of StringIO.
729 state = memio.__getstate__()
730 self.assertEqual(len(state), 3)
731 bytearray(state[0]) # Check if state[0] supports the buffer interface.
732 self.assertIsInstance(state[1], int)
733 if state[2] is not None:
734 self.assertIsInstance(state[2], dict)
795 state = memio.__getstate__()
797 memio.__setstate__(state)
830 state = memio.__getstate__()
831 self.assertEqual(len(state), 4)
832 self.assertIsInstance(state[0], str)
833 self.assertIsInstance(state[1], str)
834 self.assertIsInstance(state[2], int)
835 if state[3] is not None:
836 self.assertIsInstance(state[3], dict)