test_stimfitio.py 845 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.stimfitio
  4. """
  5. # needed for python 3 compatibility
  6. from __future__ import absolute_import
  7. import sys
  8. import unittest
  9. from neo.io import StimfitIO
  10. from neo.io.stimfitio import HAS_STFIO
  11. from neo.test.iotest.common_io_test import BaseTestIO
  12. @unittest.skipIf(sys.version_info[0] > 2, "not Python 3 compatible")
  13. @unittest.skipUnless(HAS_STFIO, "requires stfio")
  14. class TestStimfitIO(BaseTestIO, unittest.TestCase):
  15. files_to_test = ['File_stimfit_1.h5',
  16. 'File_stimfit_2.h5',
  17. 'File_stimfit_3.h5',
  18. 'File_stimfit_4.h5',
  19. 'File_stimfit_5.h5',
  20. 'File_stimfit_6.h5',
  21. ]
  22. files_to_download = files_to_test
  23. ioclass = StimfitIO
  24. if __name__ == "__main__":
  25. unittest.main()