コード例 #1
0
ファイル: test_table.py プロジェクト: mkubenka/knihovna-db
def test_invalid_options():
    table = Table()
    with pytest.raises(ValueError):
        table.options = 1

    with pytest.raises(ValueError):
        table.options = [1, 2, 3]
コード例 #2
0
ファイル: test_table.py プロジェクト: mkubenka/knihovna-db
def test_options():
    table = Table()
    table.options = dict(bar='baz')
    assert table.options == {'bar':'baz'}