source: python/tests/test_aubio.py @ d9a5466

feature/crepe_org
Last change on this file since d9a5466 was fc144a5, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[tests] avoid some imports, add missing main

  • Property mode set to 100755
File size: 386 bytes
RevLine 
[75e715f]1#! /usr/bin/env python
[1ebf8770]2
[0b6d23d]3from numpy.testing import TestCase
[ae6e15c]4
[146280a]5class aubiomodule_test_case(TestCase):
[ae6e15c]6
[0b6d23d]7    def test_import(self):
8        """ try importing aubio """
9        import aubio
[146280a]10
[a159628]11    def test_version(self):
12        """ test aubio.version """
13        import aubio
14        self.assertEqual('0', aubio.version[0])
15
[ae6e15c]16if __name__ == '__main__':
[fc144a5]17    from unittest import main
[0b6d23d]18    main()
Note: See TracBrowser for help on using the repository browser.