示例#1
0
def test_invalid_options():
    table = Table()
    with pytest.raises(ValueError):
        table.options = 1

    with pytest.raises(ValueError):
        table.options = [1, 2, 3]
示例#2
0
def test_options():
    table = Table()
    table.options = dict(bar='baz')
    assert table.options == {'bar':'baz'}