]> git.parisson.com Git - timeside.git/commitdiff
tests/testencoding.py: added first encoding test draft
authorPaul Brossier <piem@piem.org>
Wed, 29 Aug 2012 17:06:08 +0000 (11:06 -0600)
committerPaul Brossier <piem@piem.org>
Wed, 29 Aug 2012 17:06:08 +0000 (11:06 -0600)
tests/testencoding.py

index f670cc34ddfefd71b14ffaf73fb64f1ef6763db5..07f976a5e7398ed741bfb43b2933f943d522e286 100644 (file)
@@ -2,6 +2,8 @@ from math import pi
 from numpy import arange, sin, zeros
 from unit_timeside import *
 
+from timeside.encoder.gstutils import get_loop_thread
+
 import os.path
 
 class TestEncoding(TestCase):
@@ -13,7 +15,6 @@ class TestEncoding(TestCase):
         import tempfile
         self.tmpfile = tempfile.NamedTemporaryFile(delete=True)
         self.sink = self.tmpfile.name
-        self.sink = '/tmp/foo.foo'
    
     def testWav(self):
         "Test wav encoding"
@@ -72,12 +73,6 @@ class TestEncoding(TestCase):
             if self.encoder.eod :
                 break
 
-        self.encoder.release()
-
-        import commands
-        (exitstatus, outtext) = commands.getstatusoutput('sndfile-info %s' % self.sink)
-        #print outtext
-
         self.tmpfile.close()
 
 if __name__ == '__main__':