diff options
-rw-r--r-- | tests/test_bcrypt.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py index c735dc4..5793811 100644 --- a/tests/test_bcrypt.py +++ b/tests/test_bcrypt.py @@ -265,6 +265,7 @@ def test_hashpw_str_salt(): six.text_type("$2a$04$cVWp4XaNU8a4v1uMRum2SO"), ) + def test_nul_byte(): with pytest.raises(ValueError): bcrypt.hashpw(b"abc\0def", bcrypt.gensalt(0)) |