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