Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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