From 7230ee0693ff71e103a36e77d9f65cc88a4a6761 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 29 Aug 2012 11:03:26 -0600 Subject: [PATCH] tests/testdecoding.py: add long frames, use output_nframes --- tests/testdecoding.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/testdecoding.py b/tests/testdecoding.py index c14b698..3589f41 100644 --- a/tests/testdecoding.py +++ b/tests/testdecoding.py @@ -36,7 +36,7 @@ class TestDecoding(TestCase): frames, eod = decoder.process() totalframes += frames.shape[0] if eod or decoder.eod: break - self.assertEquals(frames.shape[0], decoder.nframes() ) + self.assertEquals(frames.shape[0], decoder.output_nframes ) self.assertEquals(frames.shape[1], decoder.channels() ) ratio = decoder.output_samplerate / float(decoder.input_samplerate) @@ -86,5 +86,10 @@ class TestDecodingShortframes(TestDecoding): def setUp(self): self.samplerate, self.channels, self.nframes = None, None, 256 +class TestDecodingLongframes(TestDecoding): + + def setUp(self): + self.samplerate, self.channels, self.nframes = None, None, 1024*8*2 + if __name__ == '__main__': unittest.main(testRunner=TestRunner()) -- 2.39.5