Files
whipper-gui/whipper/test/test_program_sox.py
JoeLametta 00bf17082e Test HTOA peak value against 0 (integer comparison)
Now whipper uses the absolute value of SoX's peak level as internal peak value.

Fixes #143.
2018-02-01 15:14:42 +01:00

15 lines
371 B
Python

# -*- Mode: Python; test-case-name: whipper.test.test_program_sox -*-
import os
from whipper.program import sox
from whipper.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(26215, sox.peak_level(self.path))