diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-17 17:58:42 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-17 17:58:42 -0400 |
commit | 5b143b42ae4ebcb43cd1a52d361dd0e2e46ca2d6 (patch) | |
tree | e4abf4c2d3d1c653816b814aeb6923a16371f83f /tests/hazmat/bindings | |
parent | 0b3257d1cbd577dc530acbd731bb8cf609c5d0bc (diff) | |
download | cryptography-5b143b42ae4ebcb43cd1a52d361dd0e2e46ca2d6.tar.gz cryptography-5b143b42ae4ebcb43cd1a52d361dd0e2e46ca2d6.tar.bz2 cryptography-5b143b42ae4ebcb43cd1a52d361dd0e2e46ca2d6.zip |
should probably update the test too
Diffstat (limited to 'tests/hazmat/bindings')
-rw-r--r-- | tests/hazmat/bindings/test_utils.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/hazmat/bindings/test_utils.py b/tests/hazmat/bindings/test_utils.py index 2ba391ec..0d5b34de 100644 --- a/tests/hazmat/bindings/test_utils.py +++ b/tests/hazmat/bindings/test_utils.py @@ -13,15 +13,13 @@ from __future__ import absolute_import, division, print_function -import pretend - from cryptography.hazmat.bindings import utils def test_create_modulename(): - pretend_ffi = pretend.stub(_cdefsources=["cdef sources go here"]) + cdef_sources = ["cdef sources go here"] source = "source code" - name = utils._create_modulename(pretend_ffi, source, "2.7") - assert name == "_cffi_bcba7f4bx4a14b588" - name = utils._create_modulename(pretend_ffi, source, "3.2") - assert name == "_cffi_a7462526x4a14b588" + name = utils._create_modulename(cdef_sources, source, "2.7") + assert name == "_Cryptography_cffi_bcba7f4bx4a14b588" + name = utils._create_modulename(cdef_sources, source, "3.2") + assert name == "_Cryptography_cffi_a7462526x4a14b588" |