def test_ndarray(self, empty_registry): registries = RegistryContainer(empty_registry) ndarray = np.random.rand(1000) assert all(ndarray == registries.dump(ndarray))
def test_h5py_soft_link(self, empty_registry): registries = RegistryContainer(empty_registry) soft_link = SoftLink("/example") assert soft_link == registries.dump(soft_link)
def test_h5py_external_link(self, empty_registry): registries = RegistryContainer(empty_registry) external_link = ExternalLink("example.hdf5", "/example") assert external_link == registries.dump(external_link)
def test_h5py_group(self, empty_registry, h5py_file_with_group): registries = RegistryContainer(empty_registry) group = h5py_file_with_group["example"] assert group == registries.dump(group)
def test_h5py_dataset(self, empty_registry, h5py_file_with_dataset): registries = RegistryContainer(empty_registry) dataset = h5py_file_with_dataset["example"] assert dataset == registries.dump(dataset)
def test_ndarray(self, empty_registry): registries = RegistryContainer(empty_registry) ndarray = np.random.rand(1000) assert all(ndarray == registries.dump(ndarray))
def test_hardlink(self, empty_registry): registries = RegistryContainer(empty_registry) hard_link = HardLink("/example") assert hard_link == registries.dump(hard_link)
def test_h5py_external_link(self, empty_registry): registries = RegistryContainer(empty_registry) external_link = ExternalLink("example.hdf5", "/example") assert external_link == registries.dump(external_link)
def test_h5py_soft_link(self, empty_registry): registries = RegistryContainer(empty_registry) soft_link = SoftLink("/example") assert soft_link == registries.dump(soft_link)
def test_h5py_dataset(self, empty_registry, h5py_file_with_dataset): registries = RegistryContainer(empty_registry) dataset = h5py_file_with_dataset["example"] assert dataset == registries.dump(dataset)
def test_h5py_group(self, empty_registry, h5py_file_with_group): registries = RegistryContainer(empty_registry) group = h5py_file_with_group["example"] assert group == registries.dump(group)
def test_hardlink(self, empty_registry): registries = RegistryContainer(empty_registry) hard_link = HardLink("/example") assert hard_link == registries.dump(hard_link)