Permalink
Browse files

Started unit tests

  • Loading branch information...
1 parent 89ef134 commit 92a3d7c73c9df36723a33f61819f65c17ddc80a4 @ppaez committed Jan 19, 2014
Showing with 18 additions and 1 deletion.
  1. +17 −0 test_alsamidi.py
  2. +1 −1 tox.ini
View
@@ -0,0 +1,17 @@
+from unittest import TestCase
+
+class Merge(TestCase):
+
+ def test_no_tracks(self):
+ from alsamidi import merge
+
+ self.assertEqual([], merge([]))
+
+ def test_track(self):
+ from alsamidi import merge
+
+ event = (0, 0, 0, 0, 0)
+ self.assertEqual([event], merge([[event]]))
+
+if __name__ == '__main__':
+ unittest.main()
View
@@ -1,4 +1,4 @@
[tox]
envlist = py27,py33
[testenv]
-commands=python -c 'import alsaseq ;import alsamidi ;import midiinstruments'
+commands=python -m unittest test_alsamidi

0 comments on commit 92a3d7c

Please sign in to comment.