test_igorio.py 601 B

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