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