diff options
Diffstat (limited to 'tests/test_cryptography_utils.py')
-rw-r--r-- | tests/test_cryptography_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_cryptography_utils.py b/tests/test_cryptography_utils.py index 290e1612..320f7aa8 100644 --- a/tests/test_cryptography_utils.py +++ b/tests/test_cryptography_utils.py @@ -56,3 +56,8 @@ class TestCachedProperty(object): assert len(accesses) == 1 assert t.t == 14 assert len(accesses) == 1 + + +def test_bit_length(): + assert utils.bit_length(1) == 1 + assert utils.bit_length(11) == 4 |