Esempio n. 1
0
def test_required_fail():
    with pytest.raises(RuntimeError) as excinfo:
        dep.required('bleepbloop', 'nope')
    assert 'nope' in str(excinfo.value)
Esempio n. 2
0
def test_required_success():
    assert dep.required('sys', 'yep') is not None
Esempio n. 3
0
def test_required_success():
    assert dep.required('sys', 'yep') is not None
Esempio n. 4
0
def test_required_fail():
    with pytest.raises(RuntimeError) as excinfo:
        dep.required('bleepbloop', 'nope')
    assert 'nope' in str(excinfo.value)