Esempio n. 1
0
def test_derived_raises(db):
    session = Session(db, from_id='testid')
    with pytest.raises(ValueError):
        session.derived = 5
Esempio n. 2
0
def test_derived(db):
    session = Session(db, from_id='testid')
    assert session.derived is False
    session.derived = True
    assert session.derived is True