def test_write_long_string_raises(self): f = io.BytesIO() with self.assertRaises(ValueError): aifc._write_string(f, b'too long' * 255)
def update_event(self, inp=-1): self.set_output_val(0, aifc._write_string(self.input(0), self.input(1)))