Example #1
0
 def test_ndarray(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     ndarray = np.random.rand(1000)
     assert all(ndarray == registries.dump(ndarray))
Example #2
0
 def test_h5py_soft_link(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     soft_link = SoftLink("/example")
     assert soft_link == registries.dump(soft_link)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 def test_ndarray(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     ndarray = np.random.rand(1000)
     assert all(ndarray == registries.dump(ndarray))
Example #7
0
 def test_hardlink(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     hard_link = HardLink("/example")
     assert hard_link == registries.dump(hard_link)
Example #8
0
 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)
Example #9
0
 def test_h5py_soft_link(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     soft_link = SoftLink("/example")
     assert soft_link == registries.dump(soft_link)
Example #10
0
 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)
Example #11
0
 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)
Example #12
0
 def test_hardlink(self, empty_registry):
     registries = RegistryContainer(empty_registry)
     hard_link = HardLink("/example")
     assert hard_link == registries.dump(hard_link)