Пример #1
0
 def test_write_long_string_raises(self):
     f = io.BytesIO()
     with self.assertRaises(ValueError):
         aifc._write_string(f, b'too long' * 255)
Пример #2
0
 def test_write_long_string_raises(self):
     f = io.BytesIO()
     with self.assertRaises(ValueError):
         aifc._write_string(f, b'too long' * 255)
Пример #3
0
 def update_event(self, inp=-1):
     self.set_output_val(0, aifc._write_string(self.input(0),
                                               self.input(1)))