Beispiel #1
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)
Beispiel #2
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)
Beispiel #3
0
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
Beispiel #4
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)
Beispiel #5
0
 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)
Beispiel #6
0
 def test_base_case2(self):
     args = ['data/input.aiff', 'trim', '0', '0.1']
     expected = True
     actual = core.play(args)
     self.assertEqual(expected, actual)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #10
0
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
Beispiel #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)