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