예제 #1
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_invalid_filetype(self):
     with self.assertRaises(SoxiError):
         core.soxi(INPUT_FILE_INVALID, 's')
예제 #2
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_soxi_error(self):
     with self.assertRaises(SoxiError):
         core.soxi(INPUT_FILE_CORRUPT, 's')
예제 #3
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_invalid_argument(self):
     with self.assertRaises(ValueError):
         core.soxi(INPUT_FILE, 'booger')
예제 #4
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_nonexistent_file(self):
     with self.assertRaises(SoxiError):
         core.soxi('data/asdf.wav', 's')
예제 #5
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_base_case_pathlib(self):
     actual = core.soxi(Path(INPUT_FILE), 's')
     expected = '441000'
     self.assertEqual(expected, actual)
예제 #6
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_spacey_wav(self):
     actual = core.soxi(SPACEY_FILE, 's')
     expected = '80000'
     self.assertEqual(expected, actual)
예제 #7
0
 def test_soxi_error(self):
     with self.assertRaises(SoxiError):
         core.soxi(INPUT_FILE_CORRUPT, 's')
예제 #8
0
파일: test_core.py 프로젝트: rabitt/pysox
 def test_base_case(self):
     actual = core.soxi(INPUT_FILE, 's')
     expected = '441000'
     self.assertEqual(expected, actual)
예제 #9
0
 def test_invalid_filetype(self):
     with self.assertRaises(SoxiError):
         core.soxi(INPUT_FILE_INVALID, 's')
예제 #10
0
 def test_nonexistent_file(self):
     with self.assertRaises(SoxiError):
         core.soxi('data/asdf.wav', 's')
예제 #11
0
 def test_invalid_argument(self):
     with self.assertRaises(ValueError):
         core.soxi(INPUT_FILE, 'booger')
예제 #12
0
 def test_spacey_wav(self):
     actual = core.soxi(SPACEY_FILE, 's')
     expected = '80000'
     self.assertEqual(expected, actual)
예제 #13
0
 def test_base_case(self):
     actual = core.soxi(INPUT_FILE, 's')
     expected = '441000'
     self.assertEqual(expected, actual)