Lines Matching refs:setstate
126 encoder.setstate(initial_state)
132 encoder.setstate(partial_state)
146 encoder.setstate(jp_state)
149 encoder.setstate(en_state)
191 self.assertRaises(UnicodeError, encoder.setstate, pending_size_nine)
200 self.assertRaises(UnicodeDecodeError, encoder.setstate, invalid_utf8)
269 decoder.setstate((pending2, flags2))
275 decoder.setstate((b'abc', 123456789))
280 self.assertRaises(TypeError, decoder.setstate, 123)
281 self.assertRaises(TypeError, decoder.setstate, ("invalid", 0))
282 self.assertRaises(TypeError, decoder.setstate, (b"1234", "invalid"))
283 self.assertRaises(UnicodeError, decoder.setstate, (b"123456789", 0))