test_igorio.py 540 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.igorproio
  4. """
  5. import unittest
  6. try:
  7. import igor
  8. HAVE_IGOR = True
  9. except ImportError:
  10. HAVE_IGOR = False
  11. from neo.io.igorproio import IgorIO
  12. from neo.test.iotest.common_io_test import BaseTestIO
  13. @unittest.skipUnless(HAVE_IGOR, "requires igor")
  14. class TestIgorIO(BaseTestIO, unittest.TestCase):
  15. ioclass = IgorIO
  16. files_to_test = ['mac-version2.ibw',
  17. 'win-version2.ibw']
  18. files_to_download = files_to_test
  19. if __name__ == "__main__":
  20. unittest.main()