Files
whipper-gui/morituri/test/test_program_sox.py
Samantha Baldwin 8721ba1caf standardise program/sox.py formatting, add test case, docstring (#53)
* 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')
2016-10-21 23:54:13 +02:00

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))