2 import vapoursynth
as vs
4 class CoreTestSequence(unittest
.TestCase
):
7 self
.core
= vs
.get_core(threads
=10)
9 def test_num_threads(self
):
10 self
.assertEqual(self
.core
.num_threads
, 10)
13 with self
.assertRaises(vs
.Error
):
14 self
.core
.blah
.list_functions()
17 self
.core
.std
.BlankClip()
20 self
.core
.std
.BlankClip(width
=50)
23 self
.core
.std
.BlankClip(width
=[50])
26 with self
.assertRaises(vs
.Error
):
27 self
.core
.std
.BlankClip(width
=[50, 50])
30 with self
.assertRaises(vs
.Error
):
31 self
.core
.std
.BlankClip(width
=[])
34 self
.core
.std
.BlankClip(_width
=50)
37 with self
.assertRaises(vs
.Error
):
38 self
.core
.std
.BlankClip(_width
=[])
41 with self
.assertRaises(vs
.Error
):
42 self
.core
.std
.BlankClip(10,10,10,10,10,10,10,10,10,10,10,10,10,10)
45 with self
.assertRaises(vs
.Error
):
46 self
.core
.std
.BlankClip(width2
=50)
49 with self
.assertRaises(vs
.Error
):
50 self
.core
.std
.FlipVertical()
52 if __name__
== '__main__':