Example #1
0
 def test_create(self):
     t1 = Labels(self.data)
     # we can't create an existing group
     with pytest.raises(RuntimeError) as err:
         t1.create_dataset(self.group, 10)
     assert 'create' in str(err.value)
Example #2
0
 def test_create(self):
     t1 = Labels(self.data)
     # we can't create an existing group
     with pytest.raises(RuntimeError) as err:
         t1.create_dataset(self.group, 10)
     assert 'create' in str(err.value)
Example #3
0
 def test_side_effect(self):
     t = Labels(self.data)
     t2 = Labels(self.data)
     t.create_dataset(self.group, per_chunk=100)
     t.write_to(self.group)
     assert t == t2
Example #4
0
 def test_side_effect(self):
     t = Labels(self.data)
     t2 = Labels(self.data)
     t.create_dataset(self.group, per_chunk=100)
     t.write_to(self.group)
     assert t == t2