def test_play_fail_bad_ext(self): args = ['output.xyz', 'trim', '0', '0.1'] expected = False actual = core.play(args) self.assertEqual(expected, actual)
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)
def test_play_fail_bad_args(self): args = ['', 'trim', '0', '0.01'] expected = False actual = core.play(args) self.assertEqual(expected, actual)
def test_play_fail_bad_files(self): args = ['asdf.wav', 'trim', '0', '0.1'] expected = False actual = core.play(args) self.assertEqual(expected, actual)
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)
def test_base_case2(self): args = ['data/input.aiff', 'trim', '0', '0.1'] expected = True actual = core.play(args) self.assertEqual(expected, actual)