示例#1
0
文件: test_core.py 项目: rabitt/pysox
 def test_play_fail_bad_ext(self):
     args = ['output.xyz', 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#2
0
文件: test_core.py 项目: rabitt/pysox
 def test_play_fail_corrupt_file(self):
     args = [INPUT_FILE_CORRUPT, 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#3
0
文件: test_core.py 项目: rabitt/pysox
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#4
0
文件: test_core.py 项目: rabitt/pysox
 def test_play_fail_bad_files(self):
     args = ['asdf.wav', 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#5
0
文件: test_core.py 项目: rabitt/pysox
 def test_base_pathlib(self):
     args = ['play', Path('data/input.aiff'), 'trim', '0', '0.1']
     expected = True
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#6
0
文件: test_core.py 项目: rabitt/pysox
 def test_base_case2(self):
     args = ['data/input.aiff', 'trim', '0', '0.1']
     expected = True
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#7
0
 def test_play_fail_corrupt_file(self):
     args = [INPUT_FILE_CORRUPT, 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#8
0
 def test_play_fail_bad_ext(self):
     args = ['output.xyz', 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#9
0
 def test_play_fail_bad_files(self):
     args = ['asdf.wav', 'trim', '0', '0.1']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#10
0
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
示例#11
0
 def test_base_case2(self):
     args = ['data/input.aiff', 'trim', '0', '0.1']
     expected = True
     actual = core.play(args)
     self.assertEqual(expected, actual)