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)
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