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