aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cryptography_utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-10-11 22:01:29 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-10-12 10:01:29 +0800
commit31034a03227ebfe63f4025cd95137f116cd4236a (patch)
tree33454544ff3f1f2eec9b7225a681832dd999ebd3 /tests/test_cryptography_utils.py
parenta87daea52b698a59664d852ecad567a742576265 (diff)
downloadcryptography-31034a03227ebfe63f4025cd95137f116cd4236a.tar.gz
cryptography-31034a03227ebfe63f4025cd95137f116cd4236a.tar.bz2
cryptography-31034a03227ebfe63f4025cd95137f116cd4236a.zip
Inline calls to bit_length now that it's trivial (#3966)
* Inline calls to bit_length now that it's trivial * unused imports * An comment
Diffstat (limited to 'tests/test_cryptography_utils.py')
-rw-r--r--tests/test_cryptography_utils.py5
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