def test_invalid_filenames(self): with self.assertRaises(ValueError): H5Store(None) with self.assertRaises(ValueError): H5Store('') with self.assertRaises(ValueError): H5Store(123)
def test_invalid_filenames(self): with pytest.raises(ValueError): H5Store(None) with pytest.raises(ValueError): H5Store('') with pytest.raises(ValueError): H5Store(123)
def get_other_h5store(self, **kwargs): return H5Store(filename=self._fn_store_other, **kwargs)
def _read_from_h5store(filename, **kwargs): from signac.core.h5store import H5Store with H5Store(filename, **kwargs) as h5s: list(h5s)
def _read_from_h5store(filename, **kwargs): with H5Store(filename, **kwargs) as h5s: list(h5s)