def test_invalid_filetype(self): with self.assertRaises(SoxiError): core.soxi(INPUT_FILE_INVALID, 's')
def test_soxi_error(self): with self.assertRaises(SoxiError): core.soxi(INPUT_FILE_CORRUPT, 's')
def test_invalid_argument(self): with self.assertRaises(ValueError): core.soxi(INPUT_FILE, 'booger')
def test_nonexistent_file(self): with self.assertRaises(SoxiError): core.soxi('data/asdf.wav', 's')
def test_base_case_pathlib(self): actual = core.soxi(Path(INPUT_FILE), 's') expected = '441000' self.assertEqual(expected, actual)
def test_spacey_wav(self): actual = core.soxi(SPACEY_FILE, 's') expected = '80000' self.assertEqual(expected, actual)
def test_soxi_error(self): with self.assertRaises(SoxiError): core.soxi(INPUT_FILE_CORRUPT, 's')
def test_base_case(self): actual = core.soxi(INPUT_FILE, 's') expected = '441000' self.assertEqual(expected, actual)
def test_invalid_filetype(self): with self.assertRaises(SoxiError): core.soxi(INPUT_FILE_INVALID, 's')
def test_nonexistent_file(self): with self.assertRaises(SoxiError): core.soxi('data/asdf.wav', 's')
def test_invalid_argument(self): with self.assertRaises(ValueError): core.soxi(INPUT_FILE, 'booger')
def test_spacey_wav(self): actual = core.soxi(SPACEY_FILE, 's') expected = '80000' self.assertEqual(expected, actual)
def test_base_case(self): actual = core.soxi(INPUT_FILE, 's') expected = '441000' self.assertEqual(expected, actual)