File: test_resources.py

package info (click to toggle)
pynwb 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,312 kB
  • sloc: python: 17,501; makefile: 597; sh: 11
file content (19 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import warnings

from pynwb.resources import HERD
from pynwb.testing import TestCase


class TestNWBContainer(TestCase):
    def test_constructor(self):
        """
        Test constructor
        """
        with warnings.catch_warnings(record=True):
            warnings.filterwarnings(
                "ignore",
                message=r"HERD is experimental .*",
                category=UserWarning,
            )
            er = HERD()
            self.assertIsInstance(er, HERD)