def test_unavailable(self):
    '\n        When the OpenSSL functionality is not available the decorated function\n        does not execute and NotImplementedError is raised.\n        '
    feature_guard = _make_requires(False, 'Error text')

    @feature_guard
    def inner():
        pytest.fail('Should not be called')
    with pytest.raises(NotImplementedError) as e:
        inner()
    assert ('Error text' in str(e.value))
When the OpenSSL functionality is not available the decorated function
does not execute and NotImplementedError is raised.
def test_unavailable(self):
    '\n        When the OpenSSL functionality is not available the decorated function\n        does not execute and NotImplementedError is raised.\n        '
    feature_guard = _make_requires(False, 'Error text')

    @feature_guard
    def inner():
        pytest.fail('Should not be called')
    with pytest.raises(NotImplementedError) as e:
        inner()
    assert ('Error text' in str(e.value))