diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_bcrypt.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py index 8e6ff19..bb32299 100644 --- a/tests/test_bcrypt.py +++ b/tests/test_bcrypt.py @@ -9,6 +9,11 @@ import six import bcrypt +def test_raise_implicit_compile(): + with pytest.raises(RuntimeError): + bcrypt._compile_module() + + def test_gensalt_basic(monkeypatch): urandom = mock.Mock(return_value=b"0000000000000000") monkeypatch.setattr(os, "urandom", urandom) |