test_elphyio.py 777 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.elphyio
  4. """
  5. # needed for python 3 compatibility
  6. from __future__ import division
  7. import sys
  8. import unittest
  9. try:
  10. from neo.io import ElphyIO
  11. except ImportError:
  12. ElphyIO = None
  13. from neo.test.iotest.common_io_test import BaseTestIO
  14. #@unittest.skipIf(sys.version_info[0] > 2, "not Python 3 compatible")
  15. @unittest.skip("ElphyIO not yet updated to the new API")
  16. class TestElphyIO(BaseTestIO, unittest.TestCase):
  17. ioclass = ElphyIO
  18. files_to_test = ['ElphyExample.DAT',
  19. 'ElphyExample_Mode1.dat',
  20. 'ElphyExample_Mode2.dat',
  21. 'ElphyExample_Mode3.dat',
  22. ]
  23. files_to_download = files_to_test
  24. if __name__ == "__main__":
  25. unittest.main()