]> git.parisson.com Git - timeside.git/commitdiff
tests/test_aubio_pitch.py: rename and use unit_timeside
authorPaul Brossier <piem@piem.org>
Sun, 14 Apr 2013 19:26:04 +0000 (14:26 -0500)
committerPaul Brossier <piem@piem.org>
Sun, 14 Apr 2013 19:26:04 +0000 (14:26 -0500)
tests/test_aubio_pitch.py [new file with mode: 0755]
tests/testaubio_pitch.py [deleted file]

diff --git a/tests/test_aubio_pitch.py b/tests/test_aubio_pitch.py
new file mode 100755 (executable)
index 0000000..31ffb58
--- /dev/null
@@ -0,0 +1,26 @@
+#! /usr/bin/env python
+
+from unit_timeside import *
+from timeside.decoder import *
+from timeside.analyzer.aubio_pitch import AubioPitch
+
+class TestAubioPitch(TestCase):
+
+    def setUp(self):
+        self.analyzer = AubioPitch()
+
+    def testOnSweep(self):
+        "runs on sweep"
+        self.source = os.path.join (os.path.dirname(__file__),  "samples", "sweep.wav")
+
+    def testOnGuitar(self):
+        "runs on guitar"
+        self.source = os.path.join (os.path.dirname(__file__),  "samples", "guitar.wav")
+
+    def tearDown(self):
+        decoder = FileDecoder(self.source)
+        (decoder | self.analyzer).run()
+        #print "result:", self.analyzer.result()
+
+if __name__ == '__main__':
+    unittest.main(testRunner=TestRunner())
diff --git a/tests/testaubio_pitch.py b/tests/testaubio_pitch.py
deleted file mode 100755 (executable)
index 02990d0..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /usr/bin/env python
-
-from unittest import TestCase
-from timeside.decoder import *
-from timeside.analyzer.aubio_pitch import AubioPitch
-
-class TestAubioPitch(TestCase):
-
-    def setUp(self):
-        self.analyzer = AubioPitch()
-
-    def testOnSweep(self):
-        "runs on sweep"
-        self.source = os.path.join (os.path.dirname(__file__),  "samples", "sweep.wav")
-
-    def testOnGuitar(self):
-        "runs on guitar"
-        self.source = os.path.join (os.path.dirname(__file__),  "samples", "guitar.wav")
-
-    def tearDown(self):
-        decoder = FileDecoder(self.source)
-        (decoder | self.analyzer).run()
-        #print "result:", self.analyzer.result()
-
-if __name__ == '__main__':
-    from unittest import main
-    main()