add tests for ALAC (#295)

This commit is contained in:
Adrian Sampson 2013-06-01 17:44:21 -07:00
parent 3a715a6703
commit cff06431cc
2 changed files with 15 additions and 0 deletions

BIN
test/rsrc/full.alac.m4a Normal file

Binary file not shown.

View file

@ -208,6 +208,15 @@ READ_ONLY_CORRECT_DICTS = {
'bitdepth': 0,
'channels': 1,
},
'full.alac.m4a': {
'length': 1.0,
'bitrate': 55072,
'format': 'ALAC',
'samplerate': 0,
'bitdepth': 0,
'channels': 0,
},
}
TEST_FILES = {
@ -267,6 +276,9 @@ class AllFilesMixin(object):
def test_wma(self):
self._run('full', 'wma')
def test_alac(self):
self._run('full', 'alac.m4a')
# Special test for advanced release date.
def test_date_mp3(self):
self._run('date', 'mp3')
@ -429,6 +441,9 @@ class ReadOnlyTest(unittest.TestCase):
def test_wma(self):
self._run('full.wma')
def test_alac(self):
self._run('full.alac.m4a')
def suite():
return unittest.TestLoader().loadTestsFromName(__name__)