test_examplerawio.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. """
  2. Tests of neo.rawio.examplerawio
  3. Note for dev:
  4. if you write a new RawIO class your need to put some file
  5. to be tested at g-node portal, Ask neuralensemble list for that.
  6. The file need to be small.
  7. Then you have to copy/paste/renamed the TestExampleRawIO
  8. class and a full test will be done to test if the new coded IO
  9. is compliant with the RawIO API.
  10. If you have problems, do not hesitate to ask help github (prefered)
  11. of neuralensemble list.
  12. Note that same mechanism is used a neo.io API so files are tested
  13. several time with neo.rawio (numpy buffer) and neo.io (neo object tree).
  14. See neo.test.iotest.*
  15. Author: Samuel Garcia
  16. """
  17. import unittest
  18. from neo.rawio.examplerawio import ExampleRawIO
  19. from neo.test.rawiotest.common_rawio_test import BaseTestRawIO
  20. class TestExampleRawIO(BaseTestRawIO, unittest.TestCase, ):
  21. rawioclass = ExampleRawIO
  22. # here obsvisously there is nothing to download:
  23. files_to_download = []
  24. # here we will test 2 fake files
  25. # not that IO base on dirname you can put the dirname here.
  26. entities_to_test = ['fake1',
  27. 'fake2',
  28. ]
  29. if __name__ == "__main__":
  30. unittest.main()