* standardise program/sox.py formatting, add test case
* add program/sox.peak_level() docstring
* update .travis.yml to include sox as a test dependency
* move sox from test dependency to normal dependency
* update README to mention sox, remove small autoconf mention
* use .splitlines() instead of .split('n')
14 lines
376 B
Python
14 lines
376 B
Python
# -*- Mode: Python; test-case-name: morituri.test.test_program_sox -*-
|
|
|
|
import os
|
|
|
|
from morituri.program import sox
|
|
from morituri.test import common
|
|
|
|
class PeakLevelTestCase(common.TestCase):
|
|
def setUp(self):
|
|
self.path = os.path.join(os.path.dirname(__file__), 'track.flac')
|
|
|
|
def testParse(self):
|
|
self.assertEquals(0.800018, sox.peak_level(self.path))
|