test_kwikio.py 591 B

12345678910111213141516171819202122232425262728
  1. """
  2. Tests of neo.io.kwikio
  3. """
  4. import unittest
  5. try:
  6. import h5py
  7. HAVE_H5PY = True
  8. except ImportError:
  9. HAVE_H5PY = False
  10. from neo.io import kwikio
  11. from neo.test.iotest.common_io_test import BaseTestIO
  12. @unittest.skipUnless(HAVE_H5PY, "requires h5py")
  13. @unittest.skipUnless(kwikio.HAVE_KWIK, "requires klusta")
  14. class TestKwikIO(BaseTestIO, unittest.TestCase):
  15. ioclass = kwikio.KwikIO
  16. files_to_test = ['neo.kwik']
  17. files_to_download = ['neo.kwik',
  18. 'neo.kwx',
  19. 'neo.dat']
  20. if __name__ == "__main__":
  21. unittest.main()