コード例 #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
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 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
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 def test_invalid_filetype(self):
     with self.assertRaises(SoxiError):
         core.soxi(INPUT_FILE_INVALID, 's')
コード例 #10
0
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 def test_nonexistent_file(self):
     with self.assertRaises(SoxiError):
         core.soxi('data/asdf.wav', 's')
コード例 #11
0
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 def test_invalid_argument(self):
     with self.assertRaises(ValueError):
         core.soxi(INPUT_FILE, 'booger')
コード例 #12
0
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 def test_spacey_wav(self):
     actual = core.soxi(SPACEY_FILE, 's')
     expected = '80000'
     self.assertEqual(expected, actual)
コード例 #13
0
ファイル: test_core.py プロジェクト: ejhumphrey/pysox
 def test_base_case(self):
     actual = core.soxi(INPUT_FILE, 's')
     expected = '441000'
     self.assertEqual(expected, actual)