def test_options(): c = Cell(int, 1) c.options = dict(foo='bar') assert c.options == {'foo': 'bar'}
def test_options(): c = Cell(int, 1) c.options = dict(foo='bar') assert c.options == {'foo':'bar'}
def test_invalid_options(): c = Cell(int, 1) with pytest.raises(ValueError): c.options = 1 with pytest.raises(ValueError): c.options = [1, 2, 3]