コード例 #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
ファイル: test_aifc.py プロジェクト: MiYanLiang/GameCommon
 def test_write_long_string_raises(self):
     f = io.BytesIO()
     with self.assertRaises(ValueError):
         aifc._write_string(f, b'too long' * 255)
コード例 #3
0
ファイル: nodes.py プロジェクト: xxoolm/Ryven
 def update_event(self, inp=-1):
     self.set_output_val(0, aifc._write_string(self.input(0),
                                               self.input(1)))