예제 #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)