Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 10
0
 def test_play_fail_bad_args(self):
     args = ['', 'trim', '0', '0.01']
     expected = False
     actual = core.play(args)
     self.assertEqual(expected, actual)
Exemplo n.º 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)