Fix things on case-insensitive file systems.
[vapoursynth-svn.git] / test / test.py
blob26e0ae509f0278dbf9cb9f9b4baa12f0b78563ed
1 import unittest
2 import vapoursynth as vs
4 class CoreTestSequence(unittest.TestCase):
6 def setUp(self):
7 self.core = vs.get_core(threads=10)
9 def test_num_threads(self):
10 self.assertEqual(self.core.num_threads, 10)
12 def test_func1(self):
13 with self.assertRaises(vs.Error):
14 self.core.blah.list_functions()
16 def test_arg1(self):
17 self.core.std.BlankClip()
19 def test_arg2(self):
20 self.core.std.BlankClip(width=50)
22 def test_arg3(self):
23 self.core.std.BlankClip(width=[50])
25 def test_arg4(self):
26 with self.assertRaises(vs.Error):
27 self.core.std.BlankClip(width=[50, 50])
29 def test_arg5(self):
30 with self.assertRaises(vs.Error):
31 self.core.std.BlankClip(width=[])
33 def test_arg6(self):
34 self.core.std.BlankClip(_width=50)
36 def test_arg7(self):
37 with self.assertRaises(vs.Error):
38 self.core.std.BlankClip(_width=[])
40 def test_arg8(self):
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)
44 def test_arg9(self):
45 with self.assertRaises(vs.Error):
46 self.core.std.BlankClip(width2=50)
48 def test_arg10(self):
49 with self.assertRaises(vs.Error):
50 self.core.std.FlipVertical()
52 if __name__ == '__main__':
53 unittest.main()